Jul 082012

I’m using encfs to encrypt my data before storing it in the cloud, e.g., on Dropbox. Thereby, companies have no access to the original data. On the other hand, I should be able to access my files  as easy as possible, including automatic mounting without the need to enter any password.

At first, we need a custom wrapper for the encfs binary:


We need this wrapper, because it isn’t possible to provide encfs options in fstab. The public option allows every user to access the decrypted files, even if the directory was mounted by root (via fstab). Via extpass the password is read from the file /home/me/bin/encfs_password. This file should only contain the encfs password. Don’t forget to make the wrapper executable.

Finally, we add the following line to /etc/fstab:


/home/me/bin/encfs#/home/me/.encrypted /home/me/decrypted fuse rw,user,auto 0 0 

Change the paths according to your setup.

More information: http://wiki.gentoo.org/wiki/User:Feystorm#EncFS_.26_autofs.2Ffstab

 Veröffentlicht von am 20:50

  3 Antworten zu “Automounting EncFS Using fstab”

  1. thanks for this one bro!

  2. Thanks. You help me to succeed in cloud syncing my private files. I dont trust any company.

  3. Actually, to provide the encrypted view for remote backup (while keeping the local files unencrypted), you can use encfs –reverse ~/unencrypted ~/encrypted-view


Du kannst diese HTML Tags und Attribute benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">