LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 01-23-2011, 06:24 PM   #1
hydraMax
Member
 
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, 01:33 AM   #2
macemoneta
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: 328Reputation: 328Reputation: 328Reputation: 328
From 'man encfs':

Code:
--extpass=program
           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
           text.
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:

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


Reply


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 06:05 PM
grep all values other than encrypted password from /etc/shadow file tastie Linux - General 7 01-15-2010 10:03 AM
Is a password protected zip file considered encrypted? abefroman Linux - Security 9 10-15-2009 04:39 PM
How to use key file instead of password for LUKS encrypted file systems? lucmove Linux - Security 2 06-30-2009 10:17 AM
Storing password used in shell scripts in encrypted file Swakoo Linux - Security 2 12-06-2006 11:39 PM


All times are GMT -5. The time now is 12:33 PM.

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