You are not logged in.

#1 2015-09-13 08:53:38

maggie
Member
Registered: 2011-02-12
Posts: 255

pam_mount does not umount /home when I logout

I have pam_mount installed to mount my luks /home when I log in. It works. The problem is that /home stays mounted when I log out. If I log in as root (no maggie user is on the system), /home is still mounted. How can I change this behavior?

/etc/pam.d/system-auth
#%PAM-1.0

auth      required  pam_unix.so     try_first_pass nullok
auth      optional  pam_mount.so
auth      optional  pam_permit.so
auth      required  pam_env.so

account   required  pam_unix.so
account   optional  pam_permit.so
account   required  pam_time.so

password  required  pam_unix.so     try_first_pass nullok sha512 shadow
password  optional  pam_permit.so

session   optional  pam_mount.so
session   required  pam_limits.so
session   required  pam_unix.so
session   optional  pam_permit.so
/etc/security/pam_mount.conf.xml
...
<lclmount>mount -t%(FSTYPE) %(VOLUME) %(MNTPT) "%(if %(OPTIONS),-o%(OPTIONS))"</lclmount>
<volume user="maggie" fstype="crypt" path="/dev/sda2" mountpoint="/home" options="fsck,noatime" />
<mkmountpoint enable="1" remove="true" />
</pam_mount>

Last edited by maggie (2015-09-13 08:53:57)

Offline

#2 2015-09-15 21:53:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: pam_mount does not umount /home when I logout

Now that you mention it, mine does not umount either... My config files are more or less identical to your files.  Have you tried posting to the pam_mount ML?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB