Encfs: Difference between revisions

From wikinotes
 
No edit summary
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


{{ WARNING |
{{ WARNING |
Keep backups of your .encfs6.xml files!!! These were not successfully
encfs is being infrequently/community maintained.<br>
obtained with my rsync backup, which rendered all of my encrypted volumes (and their backups) useless.
The author hints at using newer alternative like [[ecryptfs]] or [[gocryptfs]].
}}
 
{{ NOTE |
Keep backups of your .encfs6.xml files. Without them, your backups are useless.  
}}
}}


Line 20: Line 24:
<source lang="bash">
<source lang="bash">
sudo pkg install fusefs-encfs
sudo pkg install fusefs-encfs
sudo kldload fusefs
sudo kldload fusefs.ko
sudo sysctl vfs.usermount=1 ## allow non-root users to perform mounts
sudo sysctl vfs.usermount=1 ## allow non-root users to perform mounts
</source>
</source>

Revision as of 04:39, 29 May 2022

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:

encfs is being infrequently/community maintained.
The author hints at using newer alternative like ecryptfs or gocryptfs.

NOTE:

Keep backups of your .encfs6.xml files. Without them, your backups are 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