I have a number of user directories that I'd like to have encrypted and authenticated via eCryptfs.
I am attempting to create a new filesystem like so:
gpg2 --decrypt key.gpg | \ sudo mount -t ecryptfs -o key=passphrase:passphrase_passwd_fd=0 \ /home/naftuli/.private/Documents/Secure \ /home/naftuli/Documents/Secure
The goal is that I can have multiple encrypted filesystems, opening only the ones that I actually need and closing them when done, being able to make backups of
$HOME/.private which will be the encrypted and authenticated filesystem entries for the given filesystems, and being able to sync these filesystems using something like Syncthing without ever knowing what's actually inside.
What is the process for creating an eCryptfs mount point? I have not been successful so far, receiving kernel errors:
Error attempting to evaluate mount options: [-22] Invalid argument Check your system logs for details on why this happened. Try updating your ecryptfs-utils package, and/or submit a bug report on https://bugs.launchpad.net/ecryptfs
I'm on Ubuntu 16.04, kernel 4.4.0.
The tutorials I have found seem to suggest that what I'm trying above should work, but it obviously does not.