Encfs

From wikinotes
Revision as of 22:57, 15 November 2021 by Will (talk | contribs) (→‎FreeBSD)

encfs is a cross platform virtual filesystem that allows you to mount/decrypt directories.
Useful for encryption over network shares, or sharing secrets within dropbox.


WARNING:

Keep backups of your .encfs6.xml files!!! These were not successfully obtained with my rsync backup, which rendered all of my encrypted volumes (and their backups) useless.

Install

Linux

sudo pacman -S encfs

FreeBSD

sudo pkg install fusefs-encfs
sudo kldload fusefs.ko
sudo sysctl vfs.usermount=1		## allow non-root users to perform mounts

Start fuse on boot

# /boot/loader.conf
fuse_load="YES"

You may need to configure fuse to allow non root user mounting. (untested)

# /etc/fuse.conf
user_allow_other

Windows

Use encfsmp.
2016- encfs4win (cli port of encfs) depends on dokan which is no longer maintained.

Usage

encfs ~/encrypted/location ~/decrypted/location   # Create, or mount

fusermount -u ~/decrypted/location                # unmount on linux
umount ~/decrypted/location                       # unmount on bsd