auth required pam_mount.so
auth required pam_unix.so use_first_pass
session optional pam_mount.so
session required pam_unix.so
to /etc/pam.d/login and everything works fine.
]]>PAM_MOUNT WAS INVOKED WITH INSUFFICENT PRIVILEDGES. (EUID=1002)
THIS IS A BUG OF THE CALLER. CONSULT YOUR DISTRO
The pam_mount documentation (http://sourceforge.net/p/pam-mount/pam- … gs.txt#l93) unhelpfully says
Some programs and/or distributions and/or pam configurations seem to drop the root privileges after successful authentification. This goes counter to pam_mount which needs these privileges for umount.
Is Arch one of these distributions? How do I get pam_mount to umount the shares when the user logs out?
]]>