EncFS – Simple article to use Encrypted filesystem in Linux

A nice article here

EncFS is an easy-to-use, command-line tool for storing information in encrypted form. It’s not really a file-system, but it pretends to be one at the CLI. If you’ve been searching for a means of encrypting and decrypting your sensitive data easily, here it is.
User Level: Intermediate
EncFS is included with the distribution I’m using on the desktop, Ubuntu Dapper, so all I needed to do to install it was a few clicks in Synaptic. Look for the encfs package, and select if for installation. It should pull down all of the dependencies for the system. If you’re not so lucky, and your distro doesn’t include EncFS packages, you can download the latest tarball from a here and build it from the source. See the EncFS site for a dependencies.

In addition, you’ll need to load the fuse kernel module in order to use EncFS. To do this, run

1
, which should take care of loading the fuse kernel module. You also need to add your <a class="zem_slink" title="User identifier" rel="wikipedia" href="http://en.wikipedia.org/wiki/User_identifier">user ID</a> to the fuse group before you can use EncFS. To add the user ID to the fuse group, run [cc lang="bash"]usermod -a -G fuse username

— this will add username to the fuse group, without removing the user from other groups.

Here’s how it works. When you start EncFS at the command line, you tell it where to keep the encrypted and decrypted versions of your “filesystem.” The encrypted version stays put, right where you tell it to stay, but the plain-text version disappears when you want it to; either by use of an unmount command or by reaching a predetermined period of inactivity. Let’s take a hypothetical case to illustrate the process.
I’m planning a surprise birthday party for someone near and dear to me, someone who occasionally uses my desktop computer, so I decide to use EncFS to hide the evidence. To get started, I simply enter the following at the CLI:

1
encfs ~/.partyplans ~artyplans

Since this is the first time EncFS has heard about partyplans, it double-checks to make sure I haven’t made a typo before proceeding to create the directories, set the options, and get a password to use with them:
The directory “/home/warthawg/.partyplans/” does not exist. Should it be created? (y,n) y
The directory “/home/warthawgartyplans” does not exist. Should it be created? (y,n) y
Creating new encrypted volume.
Please choose from one of the following options:
enter “x” for expert configuration mode,enter “p” for pre-config
Continue reading here.

Enhanced by Zemanta

About Amit Agarwal

4 Comments on “EncFS – Simple article to use Encrypted filesystem in Linux”