]> http://slackware.cs.utah.edu/pub/slackware/slackware64-14.2/slackware64/l/boost-1.59.0-x86_64-1.txz http://slackonly.com/pub/packages/14.2-x86_64/libraries/rlog/rlog-1.4-x86_64-1_slonly.txz http://slackware.cs.utah.edu/pub/slackware/slackware64-14.2/slackware64/tcl/tcl-8.6.5-x86_64-2.txz http://slackware.cs.utah.edu/pub/slackware/slackware64-14.2/slackware64/tcl/expect-5.45-x86_64-1.txz http://slackonly.com/pub/packages/14.2-x86_64/system/encfs/encfs-1.8.1-x86_64-1_slonly.txz http://nickmerryman.com/unraid/encfs/encfs.png **ENCFS Package** The Encfs package allows you to create and mount encrypted stores using a FUSE (Filesystem in Userspace) module > /etc/fuse.conf echo -n "We need the password before anything can be mounted
\n" echo } encfs_stop() { # no-op if not running if ! grep -q "$DECDIR0" /etc/mtab ; then echo -n "encFs on $DECDIR0 not mounted" return fi CMDLINE="umount $DECDIR0" echo -n "Unmounting encFs on $DECDIR0: $CMDLINE\n" $CMDLINE echo # sleep 5 } encfs_unmount() { # no-op if not running if ! grep -q "$1" /etc/mtab ; then echo -n "encFs on $1 not mounted" return fi CMDLINE="umount $1" echo -n "Unmounting encFs on $1: $CMDLINE\n" $CMDLINE echo # sleep 5 } encfs_mount() { # no if already running if grep -q "$DECDIR0" /etc/mtab ; then echo -n "encFs on $DECDIR0 already mounted" # sleep 5 return fi if ls "$DECDIR0/*" 2> /dev/null; then echo -n "$DECDIR0 is not empty. Will not mount."; # sleep 5 return fi CMDLINE="$SCRIPTDIR/encfsmounter.exp $ENCDIR0 $DECDIR0 $1" echo "Background mounting encFS: $CMDLINE \n" # workaround for stupid unraid bug echo "$CMDLINE" | at -M NOW >/dev/null 2>&1 # echo -n "mounting encFs on $DECDIR0: $SCRIPTDIR/encfsmounter.exp $ENCDIR0 $DECDIR0 password
\n\n" # $CMDLINE # echo # echo -n "Returned from expect script. Done.
\n" # intentional small wait sleep 2 } encfs_restart() { encfs_stop sleep 1 encfs_start } write_config() { echo "# encfs configuration" > /boot/config/plugins/encfs/encfs.cfg echo "SERVICE=\"$SERVICE\"" >> /boot/config/plugins/encfs/encfs.cfg echo "INSTALLDIR=\"$INSTALLDIR\"" >> /boot/config/plugins/encfs/encfs.cfg echo "SCRIPTDIR=\"$SCRIPTDIR\"" >> /boot/config/plugins/encfs/encfs.cfg echo "ENCDIR0=\"$ENCDIR0\"" >> /boot/config/plugins/encfs/encfs.cfg echo "DECDIR0=\"$DECDIR0\"" >> /boot/config/plugins/encfs/encfs.cfg } encfs_enable() { # if not already enabled, enable it echo -n "Working on enabling encfs '$1' '$2'
\n" if [ "$SERVICE" != "enable" ]; then SERVICE=enable echo -n "Enabling encfs $1 $2\n" fi ENCDIR0=$1 DECDIR0=$2 write_config #make sure 'allow_others' gets initialized encfs_start # sleep 5 } encfs_disable() { encfs_stop SERVICE=disable write_config } # read our configuration source /boot/config/plugins/encfs/encfs.cfg case "$1" in 'start') encfs_start ;; 'stop') encfs_stop ;; 'mount') encfs_mount "$2" ;; 'unmount') encfs_unmount "$2" ;; 'restart') encfs_restart ;; 'enable') encfs_enable "$2" "$3" ;; 'disable') encfs_disable ;; *) echo "usage $0 start|stop|restart|enable|disable" esac ]]>
Enable encfs:
Encrypted backing store directory (no trailing slashes):
Decrypted mountpoint directory (no trailing slashes):

encFs volume is mounted on

encFs volume at mountpoint is not mounted

Password:

This plugin WILL NOT set up the encfs mountpoint/backing stores for you.
You need to do it from the command line before attempting to mount from this interface.
Note: encfs is rather fussy about permissions and how, precisely, the volume is mounted (especially when trying to get it working over Samba).
Following the instructions below exactly should work. First, enable this plugin and configure the directories above
Next, ssh to your server (as root), execute the following, and follow the prompts. I use expert mode, choosing AES with a 4096 block size and maximum sized key:
encfs  --public   -- -o uid=99 -o gid=100
  
Then:
chmod 770 -R  
umount

Now, you can mount the encfs volume through this interface and it should work.

]]>
/boot/config/plugins/encfs/encfs.png > /dev/null exit $? ]]> /usr/local/emhttp/plugins/encfs/scripts/rc.encfs stop /usr/local/emhttp/plugins/encfs/scripts/rc.encfs disable rm /boot/packages/boost-1.59.0-x86_64-1.txz rm /boot/packages/rlog-1.4-x86_64-1_slonly.txz rm /boot/packages/tcl-8.6.5-x86_64-2.txz rm /boot/packages/expect-5.45-x86_64-1.txz rm /boot/packages/encfs-1.8.1-x86_64-1_slonly.txz rm /usr/local/emhttp/plugins/encfs/scripts/rc.encfs rm -r /usr/local/emhttp/plugins/&name; rm -r /var/log/plugins/&name; &- exit 0 ]]>