Home Home > 2008 > 09 > 17 > pam_mount and encfs mounting when logged in
Sign up | Login

pam_mount and encfs mounting when logged in

September 17th, 2008 by

In this method there is many things that rises security peoples hair (If there is any left anymore). But this is how it goes:

Install pam_mount and encfs (From openSUSE 11.0 they are both included [Big fat warning encfs RPM is borked in openSUSE 11.0]) and encfs is included in included 10.2 (use search for pam_mount 10.2/10.3).

zypper install pam_mount encfs

Then create encfs directory (as it lives on your current filesystem!) by command

encfs /path/to/mycrypt /path/to/mnt/pnt

Give your current password when it ask you directory password. You can be paranoia! it’s easiest.

Then edit /etc/security/pam_mount.conf.xml and add this kind of line there

<volume user="your_login" fstype="fuse" path="encfs#/path/to/mycrypt" mountpoint="/path/to/mnt/pnt" />

umount the encfs volume by

fusermount -u /path/to/mnt/pnt

logout and login and it should be mounted..

Both comments and pings are currently closed.

One Response to “pam_mount and encfs mounting when logged in”

  1. Markus T

    Hi

    Tried you solution. It works but… well it’s incredible slow. I’m using KDE 4.1 and when examining the .xsession-errors it’s full of messages like:

    "couldn't lock local file"

    Every service then fails to start. Example

    kwin: Fatal IO error: client killed

    Any idea?