#!/bin/bash # Example line in /etc/fstab # /opt/encfs-fstab#/mnt/.enc /mnt/enc fuse allow_other 0 0 ENCFS_CONFIG="/root/.credentials/.encfs6.xml" ENCFS_PASS="/root/.credentials/encfs.creds" <"$ENCFS_PASS" ENCFS6_CONFIG="$ENCFS_CONFIG" encfs -S -o allow_other $*