Tuesday, March 25, 2008

getting encfs set up on ubuntu or debian

Just so I don't forget later, here's how to set up an encfs directory on a Debian-like system such that the directory will be automatically mounted the first time you log in.
  • As root, install the encfs and libpam-encfs packages.
  • As root, add your user account to the fuse group in /etc/group. Log out and back in as your regular user.
  • As your regular user, create the filesystem:
    encfs $HOME/.enc $HOME/enc

    Choose the default options and enter your password.
  • As root, edit /etc/pam.d/common-auth to look like this:
    auth sufficient pam_encfs.so

    auth required pam_unix.so nullok_secure use_first_pass

  • As root, edit fuse.conf to look like this:
    user_allow_other

  • As root, make /etc/security/pam_encfs.conf look like this:
    drop_permissions

    fuse_default nonempty



    <user> /path/to/.enc /path/to/enc -v allow_other

0 comments: