Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-23-2011, 05:24 PM   #1
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
encrypted file system: password-less encryption?

I think encfs is pretty cool, and use it all the time. However, I wish it were possible to create an encfs without needing to use a password, i.e., by providing a separate key (like a PGP key, for example). Is this something that the encfs developers are planning to add to encfs one day? Is there another project, similar to encfs, that provides this functionality?
Old 01-24-2011, 12:33 AM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
From 'man encfs':

           Specify an external program to use for getting the user password.  When the external program is spawned, the environment variable "RootDir" will be set
           to contain the path to the root directory.  The program should print the password to standard output.

           EncFS takes everything returned from the program to be the password, except for a trailing newline (\n) which will be removed.

           For example, specifying --extpass=/usr/lib/ssh/ssh-askpass will cause EncFS to use ssh's password prompt program.

           Note: EncFS reads at most 2k of data from the password program, and it removes any trailing newline.  Versions before 1.4.x accepted only 64 bytes of
Just put up to a 2K key in a file (on a thumbdrive, for example), and use the '--extpass' option to 'cat' it. For example:

encfs --extpass='/bin/cat /media/thumbdrive/pw' /home/user/encrypted /home/user/unencrypted


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypted Password File Management Question jcllings Linux - General 2 05-21-2010 05:05 PM
grep all values other than encrypted password from /etc/shadow file tastie Linux - General 7 01-15-2010 09:03 AM
Is a password protected zip file considered encrypted? abefroman Linux - Security 9 10-15-2009 03:39 PM
How to use key file instead of password for LUKS encrypted file systems? lucmove Linux - Security 2 06-30-2009 09:17 AM
Storing password used in shell scripts in encrypted file Swakoo Linux - Security 2 12-06-2006 10:39 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration