News

Sponsor

hetzner.de

Donate

Last 3 Contributions
07-02-2010 30.00
07-02-2010 15.00
06-02-2010 3.00

Donate

Languages


Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
wegfaceOffline
Post subject: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 02, 2008 - 09:41 PM



Joined: Dec 02, 2006

Posts: 409

Status: Offline
Ive been wondering how to create a sneaky encrypted folder within /home, and today i learned an easy way in sidux, thought id share.

      Code:
 (as root) apt-get install encfs


You also need fuse, but on sidux it should already be installed. We do however need to load the module: (edit: this step can be skipped it seems)

      Code:
(as root) modprobe fuse


Then we create a directory in /home that we want to encrypt, along with a second hidden dir.
All commands from now on can be done as user.

      Code:
mkdir .mychosenname
mkdir mychosenname


Now we mount the directories with encfs, and it will ask us a few questions to create the encrytped filesystem, including password,simply typing ENTER will do a standard configuration which should suit most people- or use ya grey matter and choose what you want.

      Code:
encfs /home/myuser/.mychosenname /home/myuser/mychosenname


Now our folder is ready to add our sensitive data. add a few files as a test. We can then "unmount" our encrypted system:

      Code:
fusermount -u /home/myuser/mychosenname


Now if u check the contents of /home/myuser/mychosenname it should be empty. The contents are now hidden in /home/myuser/.mychosenname , encrypted, unreadable and safe from preying eyes. The filenames are unreadable also.
We then remount with the command:
      Code:
encfs /home/myuser/.mychosenname /home/myuser/mychosenname

After entering the password, our contents again appear.
Very Happy
Remember: Your password is everything here, make it a good one, and dont forget it!

_________________
Linux user 403389 and Herbaholic Trichopath
AMD Athlon 64 X2 4200+ / 2GB ram
Acer Aspire One 1.5g ram


Last edited by wegface on Feb 05, 2008 - 07:55 AM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
hubiOffline
Post subject: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 02, 2008 - 11:11 PM



Joined: Nov 30, 2006
Wien
Posts: 4354

Status: Offline
      wegface wrote:
Remember: Your password is everything here, make it a good one, and dont forget it!
Especially when THEY start waterboarding you after a year of coercive detention, it is nice to remember the password Mr. Green

Great HOW-TO, thanks!

hubi

_________________
Bonitas stultitiaque sodales sunt.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
EvNuOffline
Post subject: RE: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 03, 2008 - 11:32 AM



Joined: Dec 16, 2006

Posts: 135

Status: Offline
Danke für das Howto wegface! Ist wirklich sehr leicht einzurichten. Smile Wie sicher ist denn encfs?

[EDIT]
Oh, i realised i wrote my comment in german Very Happy So, again in english: Thanks for the howto. How secure is encfs?

Gruß, EvNu
 
 View user's profile Send private message  
Reply with quote Back to top
titan
Post subject: RE: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 03, 2008 - 02:14 PM



Joined: Nov 30, 2006

Posts: 357

What do you see when you look at the hidden file /home/myuser/.mychosenname , nothing or a file that won't open without a password.

_________________
Titan aka Τιτάν - it's all Greek to me
 
 View user's profile Send private message  
Reply with quote Back to top
Lynx_jslOffline
Post subject: RE: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 03, 2008 - 06:17 PM



Joined: Dec 03, 2006

Posts: 110

Status: Offline
You see files with (almost) random names, no clear names or extensions. Never tried to open those directly...

Cheers,

S.
 
 View user's profile Send private message  
Reply with quote Back to top
wegfaceOffline
Post subject: RE: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 03, 2008 - 07:42 PM



Joined: Dec 02, 2006

Posts: 409

Status: Offline
You can try and open the files, but you wont succeed Wink only way to open is remount and enter the pass.
Biggest givaway is the size of files is still visible if i remember rightly.

_________________
Linux user 403389 and Herbaholic Trichopath
AMD Athlon 64 X2 4200+ / 2GB ram
Acer Aspire One 1.5g ram
 
 View user's profile Send private message  
Reply with quote Back to top
wegfaceOffline
Post subject: RE: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 04, 2008 - 04:34 PM



Joined: Dec 02, 2006

Posts: 409

Status: Offline
EvNu: its as secure as the encryption cypher you select. Default setting is blowfish, but it does loadsa kinds.

_________________
Linux user 403389 and Herbaholic Trichopath
AMD Athlon 64 X2 4200+ / 2GB ram
Acer Aspire One 1.5g ram
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject: RE: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 04, 2008 - 05:34 PM



Joined: Dec 02, 2006

Posts: 2462

Status: Offline
Blowfish is a pretty good encryption method IMO
 
 View user's profile Send private message  
Reply with quote Back to top
damentzOffline
Post subject: RE: Re: [HOW-TO] Creating an encrypted folder using EncFS  PostPosted: Feb 04, 2008 - 11:40 PM



Joined: Dec 01, 2006

Posts: 906

Status: Offline
Hey, I don't think you need to do modprobe fuse. It should be loaded on demand in sidux.

_________________
"Cool was never cool until the cool guys at Cool industries developed a cool new product: Cool."
 
 View user's profile Send private message  
Reply with quote Back to top
@lienXOffline
Post subject: encfs maybe good but better encrypt whole partitions  PostPosted: Feb 05, 2008 - 01:31 AM



Joined: Feb 26, 2007

Posts: 41

Status: Offline
Thanks for sharing your How-to!

But i would recommend encrypting your WHOLE harddisk.

Why?
1.ALL your data is secure.
-No forgotten email that has passwords in it (should not be anyway but some sites just send you cleartext passwords...)
-Your stored Iceweasel passwords are safe
-social computer attacks are much more likly to succed if someone can get even a little of /home/"user"
-....

2.You don't have the problem that you can see the single files.


I have a full secured server at home with dm-crypt and LUKS and it is really cool!
It asks for the password after Grub starts loading the kernel and thats it! My server at home runs Debian Etch and my Desktop runs sidux.

Etch has the advantage that the installer supports it Out-of-the-box.
So there i have even my / partition on a LVM encrypted.

Under sidux "only" Smile /home .
 
 View user's profile Send private message  
Reply with quote Back to top
wegfaceOffline
Post subject: RE: encfs maybe good but better encrypt whole partitions  PostPosted: Feb 05, 2008 - 07:54 AM



Joined: Dec 02, 2006

Posts: 409

Status: Offline
damentz: your correct Smile
@lienX: Yes LVM on the debian installer is very good, and i have used that in the past. For this instance i was deliberatly looking or a way to encrypt a folder only, rather that a whole partition or just a single file. Btw is it easy to set up LVM on sidux after install?

_________________
Linux user 403389 and Herbaholic Trichopath
AMD Athlon 64 X2 4200+ / 2GB ram
Acer Aspire One 1.5g ram
 
 View user's profile Send private message  
Reply with quote Back to top
@lienXOffline
Post subject: RE: encfs maybe good but better encrypt whole partitions  PostPosted: Feb 05, 2008 - 02:40 PM



Joined: Feb 26, 2007

Posts: 41

Status: Offline
Yes fairly easy there are plenty of LVM how-to's out there but you should know how LVM works to avoid problems.
http://www.debian-administration.org/articles/410
http://www.linuxdevcenter.com/pub/a/lin ... h-lvm.html
Mostly i use only Raids without LVM because i rarly need to resize my initial setup.
 
 View user's profile Send private message  
Reply with quote Back to top
zulu9Offline
Post subject: RE: encfs maybe good but better encrypt whole partitions  PostPosted: Feb 05, 2008 - 11:53 PM



Joined: Nov 30, 2006

Posts: 883

Status: Offline
thx wegface for this very good howto.
I tried to translate it to German. It can be found on my blog:
http://sidux.wordpress.com/2008/02/06/v ... mit-encfs/

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog
 
 View user's profile Send private message  
Reply with quote Back to top
dpdt1Offline
Post subject: RE: encfs maybe good but better encrypt whole partitions  PostPosted: Feb 06, 2008 - 10:19 AM



Joined: Dec 05, 2006

Posts: 29

Status: Offline
also thx for this great howto.

did a -free- translation in greek and it can be found here:
http://community.athens.indymedia.org/i ... 438.0.html

_________________
Yo vengo del hoyo
Esa es mi bandera
 
 View user's profile Send private message  
Reply with quote Back to top
hspOffline
Post subject: Re: RE: encfs maybe good but better encrypt whole partitions  PostPosted: Feb 06, 2008 - 10:26 AM



Joined: Sep 28, 2007

Posts: 279

Status: Offline
      zulu9 wrote:
thx wegface for this very good howto.
I tried to translate it to German. It can be found on my blog:
http://sidux.wordpress.com/2008/02/06/v ... mit-encfs/


Thanks... oder halt einfach danke...

...
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2009 The Zafenio Group
Credits