Mailinglist Archive: opensuse-bugs (4251 mails)

< Previous Next >
[Bug 1038454] encrypted home directory is not unmounted when user logs out
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 11 May 2017 11:59:48 +0000
  • Message-id: <>

--- Comment #4 from Matthias Gerstner <matthias.gerstner@xxxxxxxx> ---
(In reply to cfd_s12@xxxxxx from comment #3)

I'm pretty sure YaST does not use Ecryptfs.

You're right. YaST uses cryptconfig, LUKS based encrypted files, which are
loop-mounted via pam_mount into the home directory.

So if your home is not unmounted during logout then the problem probably is in
the area of pam_mount. You are using Leap 42.2, right? I tried to reproduce
this on a test installation but was not successful. So there must be some
additional influence in your setup.

pam_mount keeps a session counter in /var/run/pam_mount/<user>. Only when this
counter reaches zero, the unmount will be performed.

You can check out this value before login, while logged in an after being
logged out. You can also check the output of `journalctl -f` as root, while
doing login/logout. Maybe some warning or error message related to pam_mount
can be seen.

Also check whether your /etc/pam.d/xdm file contains this line:

session optional

Maybe you can attach this file to the bug, just in case some other session
modules influence your installation.

You can also check whether the unmounting works if done on a login text
console instead of the graphical login, because in this case a different PAM
configuration applies.

Thank you.

You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >