encfsmount - mount encfs roots automatically
$Revision: 9 $
encfsmount [--dry-run]
encfsmount looks for a configuration file
$HOME/.encfs/config
in each user's home directory, parses it, does some sanity checks and mounts the given encfs roots. The script is designed to run as root, but if the script is run as an unprivileged user, other user's home directories (and thus mounts) are skipped.
Create a folder $HOME/.encfs
and the configuration file $HOME/.encfs/config
.
The folder and the configuration file must be owned by the corresponding user and noone else must have access to it.
mount /home/johndoe/crypted_folder
to /home/johndoe/mymountpoint
using the
password mysecretpassword01
. Nobody else than johndoe
has access to it.
/home/johndoe/crypted_folder {
mount: /home/johndoe/mymountpoint
pass: mysecretpassword01
}
mount /home/johnwoo/anothercryptedfolder
to /home/johnwoo/thatsmymountpoint
using the password johnwoorocks
. Access is granted depending on the masks,
root is always allowed to access the mountpoint.
/home/johnwoo/anothercryptedfolder {
mount: /home/johnwoo/thatsmymountpoint
pass: johnwoorocks
public: yes
}