rfjakob / gocryptfs

Encrypted overlay filesystem written in Go
https://nuetzlich.net/gocryptfs/
MIT License
3.51k stars 249 forks source link

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

Open VitaliFrolov opened 9 months ago

VitaliFrolov commented 9 months ago

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.

dw-loewe commented 2 weeks ago

I can reproduce this here, debian 12; have exactly the same problem.