[Bug 117736] Re: pam_mount unable to unmount needs root priv

mannheim kronheim at math.harvard.edu
Thu Nov 6 13:38:41 GMT 2008


This bug is affecting me when logging in via gdm in hardy. My home
directory is encrypted in /dev/sda6. Steps to reproduce (after setting
up pam_mount etc. in Ubuntu 8.04.1):

1. Log in as me (bill) via gdm.
2. Log out.
3. Log in as joe, a member of admin group.
4. As joe, do
         $ sudo mkdir /mnt/bills-secrets
         $ sudo mount /dev/mapper/_dev_sda6 /mnt/bills-secrets

Actual results: the plain text partition is visible to bill.
Expected results: when bill logs out, the crypto mapping is taken down.

Other information: ----

My /var/log/auth.log shows:

> Nov  4 15:11:42 foo-machine gdm[6157]: pam_mount(pam_mount.c:624)
unmount of /dev/sda6 failed

I have also noticed that logout takes a few more seconds than expected
when the home directory is mounted this way via encryption and
pam_mount. Perhaps this delay is another symptom of the problem.

The relevant line in my /etc/security/pam_mount.conf.xml is

<volume user="bill" fstype="crypt" path="/dev/sda6"
mountpoint="/home/bill" />

-- 
pam_mount unable to unmount needs root priv
https://bugs.launchpad.net/bugs/117736
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.



More information about the Ubuntu-server-bugs mailing list