kanotix.com

Anything goes - A cool way to have an encrypted folder

Swynndla - 23.09.2006, 03:02 Uhr
Titel: A cool way to have an encrypted folder
I have an external usb drive, and I wanted to put some personal files in an encrypted directory so that to view the files, I would first have to put in a password.

The files could be anything, but I wanted to put some banking info and other stuff that I don't want other people to be able to see if my drive was stolen etc.

A friend told me what to do (thanks to Fran), but a howto can also be found here:
http://www.debian-administration.org/articles/204

This is what I did:

First you need to do (all these commands are done as root):
Code:
apt-get install encfs fuse-utils

Then add fuse as a module:
Code:
modprobe fuse

And add fuse to /etc/modules so that it'll be there after reboot.

Now add yourself to the fuse group:
Code:
adduser swynndla fuse

(I think you have to log out and in again or reboot for the fuse group to be added ... the command "groups" shows what groups you are currently in.)

Create a folder called encrypted and a folder called clear (for example)
then use the command as user (not root) (and you have to use full paths):
Code:
encfs /full/path/encrypted /full/path/clear

eg:
encfs /media/sda1/encrypted /media/sda1/clear

It'll take you through setting a password, and level of encryption.
(select p for paranoid if you want (uses better encryption) or enter for standard encryption)

Now "clear" will be mounted (do the command "mount" to check if you want).

Copy files into clear, and they will appear in "encrypted" as encrytped. When finished use (as user):
Code:
fusermount -u /full/path/clear
to unmount the clear version.

Now it's all set up.

To mount (and view your files), do as user:
Code:
encfs /full/path/encrypted /full/path/clear

To unmount (so no-one can see your files), do as user:
Code:
fusermount -u /full/path/clear

Note: you can use this method to create an encrypted folder anywhere, eg local hard drive, dvd+rw, even a usb pen formated as fat32.

Warning: if you lose your password, there is no way to recover your files.
DeepDayze - 23.09.2006, 03:18 Uhr
Titel: RE: A cool way to have an encrypted folder
pretty cool indeed! Should help Windoz users who use encrypted folders make a move to Linux. Now what about making *COMPRESSED* folders?
bluewater - 23.09.2006, 05:06 Uhr
Titel:
Swynndla

I added the page to the wiki

http://kanotix.com/index.php?module=pnW ... SecurityEn
Swynndla - 23.09.2006, 08:32 Uhr
Titel:
ahhh bluewater - good idea, thanks Smilie
kenyee - 23.09.2006, 15:37 Uhr
Titel:
deepdayze:
I've linked to this before...look at all the cool stuff you can do w/ fuse Smilie
http://fuse.sourceforge.net/wiki/index.php/FileSystems

The one you want is compfused, fusecompress, LZOlayer_fs, or Apretujado... Winken
DeepDayze - 23.09.2006, 16:10 Uhr
Titel:
just like the ol' Doublespace of DOS 6.0 fame, kenyee Smilie
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007