Package: libpam-mount Version: 2.10-2 Severity: normal
I have a guest account with a tmpfs filesystem and the filesystem is not unmounted when guest logs out. The error messages are: guest@kooka:~$ logout pam_mount(spawn.c:128): error setting uid to 0 pam_mount(spawn.c:128): error setting uid to 0 pam_mount(mount.c:69): umount messages: pam_mount(mount.c:73): umount: /home/guest is not in the fstab (and you are not root) pam_mount(mount.c:752): unmount of none failed <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd"> <pam_mount> <debug enable="0" /> <cryptumount>umount.crypt %(MNTPT)</cryptumount> <mntoptions allow="discard,nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" /> <mntoptions require="nosuid,nodev" /> <path>/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin</path> <logout wait="20000" term="yes" kill="yes" /> <mkmountpoint enable="1" remove="true" /> [..] <volume user="guest" fstype="tmpfs" path="none" mountpoint="~" options="size=100M,uid=guest,gid=users,mode=0700" /> [..] </pam_mount> with debug enable="1" I see :; sudo su - guest pam_mount(pam_mount.c:553): pam_mount 2.10: entering session stage reenter password for pam_mount: pam_mount(misc.c:38): Session open: (ruid/rgid=0/1002, e=0/1002) pam_mount(mount.c:218): Mount info: globalconf, user=guest <volume fstype="tmpfs" server="(null)" path="none" mountpoint="/home/guest" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="size=100M,uid=guest,gid=users,mode=0700" /> fstab=0 ssh=0 command: 'mount' '-p0' '-osize=100M,uid=guest,gid=users,mode=0700' '-ttmpfs' 'none' '/home/guest' pam_mount(misc.c:38): set_myuid<pre>: (ruid/rgid=0/1002, e=0/1002) pam_mount(misc.c:38): set_myuid<post>: (ruid/rgid=0/1002, e=0/1002) pam_mount(misc.c:380): 13 19 0:13 / /sys rw,nosuid,nodev,noexec,relatime - sysfs sysfs rw pam_mount(misc.c:380): 14 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw pam_mount(misc.c:380): 15 19 0:5 / /dev rw,relatime - devtmpfs udev rw,size=4092204k,nr_inodes=1023051,mode=755 pam_mount(misc.c:380): 16 15 0:10 / /dev/pts rw,nosuid,noexec,relatime - devpts devpts rw,gid=5,mode=620,ptmxmode=000 pam_mount(misc.c:380): 17 19 0:14 / /run rw,nosuid,noexec,relatime - tmpfs tmpfs rw,size=819740k,mode=755 pam_mount(misc.c:380): 19 1 254:0 / / rw,relatime - ext4 /dev/mapper/vg_root-root rw,user_xattr,acl,barrier=1,stripe=128,data=ordered,discard pam_mount(misc.c:380): 20 19 0:16 / /lib/init/rw rw,nosuid,relatime - tmpfs tmpfs rw,size=5120k,mode=755 pam_mount(misc.c:380): 21 19 0:17 / /tmp rw,nosuid,nodev,relatime - tmpfs tmpfs rw,size=1639476k pam_mount(misc.c:380): 22 17 0:18 / /run/shm rw,nosuid,nodev,relatime - tmpfs tmpfs rw,size=1639476k pam_mount(misc.c:380): 23 14 0:15 / /proc/bus/usb rw,relatime - usbfs usbfs rw pam_mount(misc.c:380): 24 19 8:1 / /boot rw,relatime - ext4 /dev/sda1 rw,user_xattr,acl,barrier=1,stripe=128,data=ordered,discard pam_mount(misc.c:380): 25 19 254:0 / /disks/root rw,relatime - ext4 /dev/mapper/vg_root-root rw,user_xattr,acl,barrier=1,stripe=128,data=ordered,discard [..] pam_mount(misc.c:380): 27 19 254:27 / /var rw,nosuid,nodev,relatime - ext4 /dev/mapper/var rw,user_xattr,acl,barrier=1,stripe=128,data=ordered [..] pam_mount(misc.c:380): 29 27 0:19 / /var/tmp rw,relatime - tmpfs tmpfs rw,size=524288k [..] pam_mount(misc.c:380): 33 13 0:6 / /sys/kernel/debug rw,relatime - debugfs debugfs rw pam_mount(misc.c:380): 34 13 0:20 / /sys/fs/fuse/connections rw,relatime - fusectl fusectl rw [..] pam_mount(misc.c:380): 40 19 0:22 / /home/guest rw,relatime - tmpfs none rw,size=102400k,mode=700,uid=1002,gid=100 command: 'pmvarrun' '-u' 'guest' '-o' '1' pam_mount(misc.c:38): set_myuid<pre>: (ruid/rgid=0/1002, e=0/1002) pam_mount(misc.c:38): set_myuid<post>: (ruid/rgid=0/1002, e=0/1002) pmvarrun(pmvarrun.c:252): parsed count value 0 pam_mount(pam_mount.c:440): pmvarrun says login count is 1 pam_mount(pam_mount.c:645): done opening session (ret=0) guest@kooka:~$ logout pam_mount(pam_mount.c:691): received order to close things pam_mount(misc.c:38): Session close: (ruid/rgid=1002/1002, e=1002/1002) command: 'pmvarrun' '-u' 'guest' '-o' '-1' pam_mount(misc.c:38): set_myuid<pre>: (ruid/rgid=1002/1002, e=1002/1002) pam_mount(spawn.c:128): error setting uid to 0 pam_mount(pam_mount.c:440): pmvarrun says login count is 0 command: 'pmt-ofl' '-k15' '/home/guest' command: 'pmt-ofl' '-k9' '/home/guest' pam_mount(mount.c:749): going to unmount pam_mount(mount.c:218): Mount info: globalconf, user=guest <volume fstype="tmpfs" server="(null)" path="none" mountpoint="/home/guest" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="size=100M,uid=guest,gid=users,mode=0700" /> fstab=0 ssh=0 command: 'pmt-ofl' '-k0' '/home/guest' command: 'umount' '/home/guest' pam_mount(misc.c:38): set_myuid<pre>: (ruid/rgid=1002/1002, e=1002/1002) pam_mount(spawn.c:128): error setting uid to 0 pam_mount(mount.c:69): umount messages: pam_mount(mount.c:73): umount: /home/guest is not in the fstab (and you are not root) pam_mount(mount.c:752): unmount of none failed pam_mount(pam_mount.c:728): pam_mount execution complete pam_mount(pam_mount.c:132): clean system authtok=0xbff6f0 (0) pam_mount(pam_mount.c:115): Clean global config (0) -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libpam-mount depends on: ii libc6 2.13-4 Embedded GNU C Library: Shared lib ii libcryptsetup1 2:1.3.0-3 libcryptsetup shared library ii libhx27 3.10.1-3 C library providing queue, tree, I ii libpam-runtime 1.1.2-3 Runtime support for the PAM librar ii libpam0g 1.1.2-3 Pluggable Authentication Modules l ii libssl1.0.0 1.0.0d-2 SSL shared libraries ii libxml2 2.7.8.dfsg-3 GNOME XML library ii mount 2.17.2-9.1 Tools for mounting and manipulatin libpam-mount recommends no packages. Versions of packages libpam-mount suggests: pn davfs2 <none> (no description available) ii fuse-utils 2.8.5-3 Filesystem in Userspace (transitio pn lsof <none> (no description available) pn ncpfs <none> (no description available) ii openssl 1.0.0d-2 Secure Socket Layer (SSL) binary a ii psmisc 22.13-1 utilities that use the proc file s pn smbfs <none> (no description available) ii sshfs 2.2-1 filesystem client based on SSH Fil pn tc-utils <none> (no description available) pn xfsprogs <none> (no description available) -- Configuration Files: /etc/security/pam_mount.conf.xml changed [not included] -- debconf-show failed -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

