To enable Ubuntu file system encryption with ecryptfs, you can follow these steps:
- Install ecryptfs-utils by running the following command in the terminal:
sudo apt-get install ecryptfs-utils
- Create a directory that will be used for the encrypted files. For example, you can create a directory called "private" in your home directory:
- Run the following command to create an encrypted folder inside the "private" directory:
sudo mount -t ecryptfs ~/private ~/private
- You will be asked to provide some information during the setup process. Follow the instructions and provide a passphrase that will be used to encrypt and decrypt the files.
- Once the encrypted folder is created, you can copy or move files into it just like any other folder. The files will be automatically encrypted and decrypted as they are accessed.
- To unmount the encrypted folder, run the following command:
Note that the encrypted files will not be accessible without the passphrase that was used during the setup process. Make sure to keep this passphrase safe and secure.