Sponsored Link

eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic filesystem for Linux.It provides advanced key management and policy features. eCryptfs stores cryptographic metadata in the header of each file written, so that encrypted files can be copied between hosts; the file will be decryptable with the proper key, and there is no need to keep track of any additional information aside from what is already in the encrypted file itself. Think of eCryptfs as a sort of "gnupgfs".eCryptfs is a native Linux filesystem. The kernel module component of eCryptfs is part of the Linux kernel since 2.6.19.

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.

mkdir ~/Personal

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.





Sponsored Link













Related posts