Install eCryptfs in Ubuntu Intrepid
sudo aptitude install ecryptfs-utils
This will install all the required packages in ubuntu intrepid.
First you need to Create a new directory to encrypt.
Now you need to make sure no one will access this folder using the following command
chmod 700 ~/Personal
Mount the ecryptfs to the Personal folder using the following command
sudo mount -t ecryptfs ~/Personal ~/Personal
It will then prompt you to answer a few questions.
Selecting your key type for newly created files
Press "1" to select passphrase
You will be asked to enter and verify your passphrase.
Selecting your encryption cipher
The default option is shown in the [16 ]. If you are not sure of what to select, simply press Enter to select the default. Select key byte and Enable plaintext passthrough
If you want to use unecrypted file inside your secret folder, then select ‘Y’. If not, type ‘N’.
Now go to Places->Home Folder. You should see a Personal drive mounted in the file system.
Testing your secret folder encryption
Now you need to Add some files to the secret folder.
Unmount using the following command
sudo umount ~/Personal
Now you can open Personal folder and check your files.
Creating a launcher for your Private Directory
If you create a launcher on your desktop allows you to mount the Personal folder easily.On your desktop, right click the mouse and select “Create Launcher“.
Enter the following Details
Type: Application in Terminal
Name: PrivateFolder (or your choice)
Command: sudo mount -t ecryptfs /home/ruchi/Personal /home/ruchi/Personal
key=passphrase,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=n (Replace ruchi with your own username)
Next time if you want to mount your Personal folder, just click on this launcher. It will pop up a terminal and ask you for your passphrase. Once that is verified, the Personal folder will be mounted in the Home folder.
Incoming search terms:
- linux encrypt directory
- linux encrypted folder
- linux encrypted directory
- encrypt directory linux
- linux directory encryption
- ubuntu encrypted folder
- encrypted directory linux
- linux create encrypted folder
- create encrypted folder linux