EncFS – Simple article to use Encrypted filesystem in Linux
2009-12-24
495 words
3 mins read
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
|
— 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
|
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.
Related articles by Zemanta
- GlusterFS on the cheap with Rackspace’s Cloud Servers or Slicehost (building43.com)
- Solaris one liners (amit-agarwal.co.in)
- EtherCard – cheap Ethernet module with ENC28J60 (electronics-lab.com)
- Using the /proc Filesystem to Examine Your Linux Inner Working (maketecheasier.com)
Related Articles:
- 2009/12/22 7 Examples for Sed Hold and Pattern Buffer Operations
- 2009/10/01 Boot Linux Over HTTP With boot.kernel.org (BKO)
- 2009/12/19 Chrome – Chromium on Linux (repo)
- 2009/11/21 5 Sites To Find Free Alternatives To Popular Software
- 2009/09/17 top command with rc to make it more useful and beautiful.
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.