I have problems setting up filesystem encryption (I'll be honest, it's a bit too complicated for me). Is there a feature like EFS from Windows where I can simply encrypt directory and/or files?
-
1The technology exists, but I'm unaware of a user-friendly way to do it. This answer might get you part of the way there, but the instructions it links to specifically work only for encrypting the home drive.– jpaughSep 23, 2019 at 16:28
-
Might also want to take a look at this (for non-rotational drive): unix.stackexchange.com/questions/332554/…– Tom YanSep 23, 2019 at 16:35
-
help.ubuntu.com/lts/serverguide/ecryptfs.html provides information in encrypting any filesystem you wish, and howtoforge.com/tutorial/… describes how to encrypt a specific directory, its files, and directories and files beneath.– K7AAYSep 23, 2019 at 17:16
-
Thank you very much everyone. I'll read those and try them in a VM first :)– KingbirdSep 23, 2019 at 17:17
-
Take a look at Plasma Vaults. techrepublic.com/article/…– Johan MyréenSep 23, 2019 at 18:36
1 Answer
You might want to give EncFS a try:
EncFS provides an encrypted filesystem in user-space. It runs with regular user permissions using the FUSE library. EncFS is Open Source software.
Basic usage:
$ encfs ~/.encrypted_data ~/clear_data
That will create a ~/.encrypted_data and will mount the unencrypted version as ~/clear_data (your user needs to be in the fuse group)
You only interact with ~/clear_data, and everything in that mount will be encrypted in the real directory ~/.encrypted_data
Once you are done, you can remove the unencrypted mount with:
fusermount -u ~/clear_data