Based on some of the workarounds provided in this thread, the following script (or documentation, half of it is comments and echo statements) will get ecryptfs + per-user automounting/unmounting working on a Debian 10 (Buster) system
Use at your own risk, this is not official documentation but it has been tested on at least one system. There may be a few apt dependencies missing, but most should be included in the list in the script: https://gist.github.com/mzpqnxow/ce8fbfb6fe10e5e722425ecd1d80d506 I suggest running it manually, one command at a time, to diagnose any issues that may arise based on your system configuration In summary: 1. Installs dependencies for building ecryptfs-utils-111 2. Builds and installs ecryptfs-utils-111 from source with /usr as a PREFIX 3. Sets /usr/sbin/mount.ecryptfs_private to 4755 4. Updates the PAM configuration for common-auth and common-session It seems to work with a single session or multiple sessions, with the last session logout properly triggering the unmount in my testing This works well enough for me for now, but can we expect this to be resolved any time soon? For some users, myself included, lacking ecryptfs-utils and private directory encryption is a showstopper