This mini-howto will guide you towards encrypting selected portions of your filesystem using Fuse + EncFS; specifically, protecting your Thunderbird email and private Firefox browser data on a Fedora linux platform. Fedora rocks by the way.
Note: this has been tested on Fedora Core 5, Core 6, 7 and 8.
Useful links:
Install Fuse and EncFs and Set Up Permissions:
yum install fuse-encfsusermod -a -Gfuse username fuse service is startedservice fuse startCreate Your Encrypted Filesystem (as a normal user):
._raw-efs will be the encrypted filesystem;
efs will be the mountpoint.mkdir ~/efs ~/._raw-efs encfs ~/._raw-efs ~/efs
fusermount -u ~/efs # unmount itTest It (as a normal user):
encfs ~/._raw-efs ~/efsefs as mounted.mount |grep fusetouch ~/efs/.mounted-flagecho "this is a test" > ~/efs/test-file.txtcat ~/efs/test-file.txtfusermount -u ~/efscat ~/efs/test-file.txtls -a ~/efs/.mounted-flagls -a ~/efsls -l ~/._raw-efsUsing It with Firefox and Thunderbird:
encfs ~/._raw-efs ~/efscd ~/mv .mozilla efs/mv .thunderbird efs/ln efs/.thunderbird .ln efs/.mozilla .You can now crank up Firefox and Thunderbird and all sensitive data will be
placed in an encrypted filesystem. Without scripting, you will have to mount
the encrypted directory prior to opening the browser or email client. Don't
limit this to just Firefox and Thunderbird, for example, all my instant
messaging private information is stored in ~/efs/.purple/.
Scripting:
I scripted opening and closing the encrypted filesystem. You can also script
auto mounting of this directory upon login fairly simply. I have my desktop set
up so that Firefox, Thunderbird, and Pidgin all symlink their .*
file directories under ~/efs. The launch scripts all look for that
.mounted-flag files flag. If it doesn't exist, the scripts will mount the
encrypted file system. I use gnome-ssh-askpass to graphically ask
the password ($SSH_ASKPASS). FIXME: More on this later.
This should be enough to get you going. Good luck and safe travels for both you and your private data.
Article Todo
<-- HOWTOs page
Last updated: 2008-02-08