gocryptfs icon indicating copy to clipboard operation
gocryptfs copied to clipboard

Encrypted folder does not unmount when user logs out from KDE (SDDM)

Open VitaliFrolov opened this issue 1 year ago • 1 comments

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.

VitaliFrolov avatar Dec 28 '23 23:12 VitaliFrolov