gocryptfs
gocryptfs copied to clipboard
Encrypted folder does not unmount when user logs out from KDE (SDDM)
I have followed this guide to set up home folder encryption and unlock on log in: https://github.com/rfjakob/gocryptfs/wiki/Mounting-on-login-using-pam_mount
I have used a "test" user for initial testing. I am on Debian 12 with KDE and SDDM.
Everything works as expected at first. When I log in as "test" the encrypted folder is mounted. But when I log out from the KDE session via KDE GUI button "log out" the encrypted volume is still there and accessible for all other users in the system. After I log out and switch to a different user I can do:
sudo ls /home/test
GOCRYPTFS_MOUNTED
This is only happening if I log out via KDE GUI. If I log out in the terminal the encrypted folder is unmounted and no longer accessible for other users.