Package: libpam-mount Version: 1.10-1 Severity: minor
Got the following from /var/log/auth.log : 3795 Aug 28 23:46:00 athlon login[26999]: pam_mount(pam_mount.c:312): pam_mount 1.10: entering auth stage 3796 Aug 28 23:46:01 athlon login[26999]: pam_unix(login:session): session opened for user wife by LOGIN(uid=0) 3797 Aug 28 23:46:01 athlon login[26999]: pam_mount(pam_mount.c:458): pam_mount 1.10: entering session stage 3798 Aug 28 23:46:02 athlon login[26999]: pam_mount(pam_mount.c:479): back from global readconfig 3799 Aug 28 23:46:02 athlon login[26999]: pam_mount(pam_mount.c:481): per-user configurations not allowed by pam_mount.conf 3799 .xml 3800 Aug 28 23:46:02 athlon login[26999]: pam_mount(misc.c:38): Session open: (uid=0, euid=0, gid=615, egid=615) 3801 Aug 28 23:46:03 athlon login[26999]: pam_mount(rdconf2.c:182): checking sanity of volume record (/dev/disk/by-id/usb-H 3801 itachi_HTS543232L9A300_090423FB2403-0:0-part5) 3802 Aug 28 23:46:03 athlon login[26999]: pam_mount(pam_mount.c:536): about to perform mount operations 3803 Aug 28 23:46:04 athlon login[26999]: pam_mount(mount.c:181): Mount info: globalconf, user=wife <volume server="(null)" 3803 path="/dev/disk/by-id/usb-Hitachi_HTS543232L9A300_090423FB2403-0:0-part5" mountpoint="/home/wife" cipher="(null)" fsk 3803 eypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="exec,fsck,nodev,nosuid,user_xattr,noatime" /> fstab=0 3803 3804 Aug 28 23:46:04 athlon login[26999]: pam_mount(mount-sysv.c:57): realpath of volume "/home/wife" is "/home/wife" 3805 Aug 28 23:46:04 athlon login[26999]: pam_mount(mount-sysv.c:61): checking to see if /dev/disk/by-id/usb-Hitachi_HTS543 3805 232L9A300_090423FB2403-0:0-part5 is already mounted at /home/wife 3806 Aug 28 23:46:05 athlon login[26999]: pam_mount(mount.c:494): checking for encrypted filesystem key configuration 3807 Aug 28 23:46:05 athlon login[26999]: pam_mount(mount.c:497): about to start building mount command 3808 Aug 28 23:46:05 athlon login[26999]: command: [mount.crypt] [-oexec,fsck,nodev,nosuid,user_xattr,noatime] [/dev/disk/b 3808 y-id/usb-Hitachi_HTS543232L9A300_090423FB2403-0:0-part5] [/home/wife] 3809 Aug 28 23:46:06 athlon login[14582]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=615, egid=615) 3810 Aug 28 23:46:06 athlon login[14582]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=615, egid=615) 3811 Aug 28 23:46:06 athlon login[26999]: pam_mount(mount.c:75): mount errors: 3812 Aug 28 23:46:07 athlon login[26999]: pam_mount(mount.c:78): Command successful. 3813 Aug 28 23:46:09 athlon login[26999]: pam_mount(mount.c:539): waiting for mount 3814 Aug 28 23:46:09 athlon login[26999]: command: [pmvarrun] [-u] [wife] [-o] [1] 3815 Aug 28 23:46:10 athlon login[14772]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=615, egid=615) 3816 Aug 28 23:46:10 athlon login[14772]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=615, egid=615) 3817 Aug 28 23:46:10 athlon login[26999]: pam_mount(pam_mount.c:418): pmvarrun says login count is 1 3818 Aug 28 23:46:11 athlon login[26999]: pam_mount(pam_mount.c:550): done opening session (ret=0) 3819 Aug 28 23:46:40 athlon login[26999]: pam_unix(login:session): session closed for user wife 3820 Aug 28 23:46:40 athlon login[26999]: pam_mount(pam_mount.c:592): received order to close things 3821 Aug 28 23:46:40 athlon login[26999]: pam_mount(misc.c:38): Session close: (uid=0, euid=0, gid=615, egid=615) 3822 Aug 28 23:46:41 athlon login[26999]: command: [pmvarrun] [-u] [wife] [-o] [-1] 3823 Aug 28 23:46:41 athlon login[15548]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=615, egid=615) 3824 Aug 28 23:46:41 athlon login[15548]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=615, egid=615) 3825 Aug 28 23:46:42 athlon login[26999]: pam_mount(pam_mount.c:418): pmvarrun says login count is 0 3826 Aug 28 23:46:42 athlon login[26999]: pam_mount(mount.c:673): going to unmount 3827 Aug 28 23:46:42 athlon login[26999]: pam_mount(mount.c:181): Mount info: globalconf, user=wife <volume server="(null)" 3827 path="/dev/disk/by-id/usb-Hitachi_HTS543232L9A300_090423FB2403-0:0-part5" mountpoint="/home/wife" cipher="(null)" fsk 3827 eypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="exec,fsck,nodev,nosuid,user_xattr,noatime" /> fstab=0 3827 3828 Aug 28 23:46:43 athlon login[26999]: command: [umount.crypt] [/home/wife] 3829 Aug 28 23:46:43 athlon login[15550]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=615, egid=615) 3830 Aug 28 23:46:43 athlon login[15550]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=615, egid=615) 3831 Aug 28 23:46:44 athlon login[26999]: pam_mount(mount.c:340): waiting for umount 3832 Aug 28 23:46:44 athlon login[26999]: pam_mount(mount.c:676): unmount of /dev/disk/by-id/usb-Hitachi_HTS543232L9A300_09 3832 0423FB2403-0:0-part5 failed 3833 Aug 28 23:46:44 athlon login[26999]: pam_mount(pam_mount.c:633): pam_mount execution complete 3834 Aug 28 23:46:45 athlon login[26999]: pam_mount(pam_mount.c:115): Clean global config (0) 3835 Aug 28 23:46:45 athlon login[26999]: pam_mount(pam_mount.c:132): clean system authtok=0x9f47440 (0) <<------ end of log ------>> Note lines 3831 - 3833. pam_mount thinks umount.crypt failed, but 'df' no longer shows "/home/wife" and there's no longer a "/dev/mapper/_dev_sdd5", so the umount.crypt appears to have succeeded. I tried manually issuing the 'mount.crypt' and 'umount.crypt' commands, and got return code 1 from 'umount.crypt': <<------ start of log ------>>> 1(0) 00:39 r...@athlon ~ 513# ls -al /dev/mapper total 0 drwxr-xr-x 2 root root 80 2009-08-29 00:38:44 . drwxr-xr-x 15 root root 4840 2009-08-29 00:38:44 .. crw-rw---- 1 root root 10, 60 2009-08-25 23:34:49 control brw-rw---- 1 root disk 254, 0 2009-08-25 23:35:38 _dev_sdb6 1(0) 00:39 r...@athlon ~ 514# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda12 21157620 12316624 8840996 59% / tmpfs 1943756 8 1943748 1% /lib/init/rw udev 10240 216 10024 3% /dev tmpfs 1943756 0 1943756 0% /dev/shm /dev/sda7 28842748 3282576 25560172 12% /home /dev/sda2 11543048 5322472 6220576 47% /opt /dev/sda4 690736684 419924460 270812224 61% /M: /dev/sdb6 485882616 223585108 262297508 47% /home/htest /dev/sdc6 966642444 647550064 319092380 67% /O: 1(0) 00:39 r...@athlon ~ 515# mount.crypt -oexec,fsck,nodev,nosuid,user_xattr,noatime /dev/disk/by-id/usb-Hitachi_HTS543232L9A300_090423FB2403-0:0-part5 /home/wife Password: key slot 0 unlocked. Command successful. fsck 1.41.3 (12-Oct-2008) OCBW: clean, 3614/19529728 files, 1426518/78113789 blocks 1(0) 00:39 r...@athlon ~ 516# ls -al /dev/mapper total 0 drwxr-xr-x 2 root root 100 2009-08-29 00:39:50 . drwxr-xr-x 15 root root 4860 2009-08-29 00:39:50 .. crw-rw---- 1 root root 10, 60 2009-08-25 23:34:49 control brw-rw---- 1 root disk 254, 0 2009-08-25 23:35:38 _dev_sdb6 brw-rw---- 1 root disk 254, 1 2009-08-29 00:39:51 _dev_sdd5 1(0) 00:40 r...@athlon ~ 517# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda12 21157620 12316732 8840888 59% / tmpfs 1943756 8 1943748 1% /lib/init/rw udev 10240 220 10020 3% /dev tmpfs 1943756 0 1943756 0% /dev/shm /dev/sda7 28842748 3282576 25560172 12% /home /dev/sda2 11543048 5322472 6220576 47% /opt /dev/sda4 690736684 419924460 270812224 61% /M: /dev/sdb6 485882616 223585108 262297508 47% /home/htest /dev/sdc6 966642444 647550064 319092380 67% /O: /dev/sdd5 307552372 803288 303624536 1% /home/wife 1(0) 00:40 r...@athlon ~ 518# umount.crypt /home/wife 1(1) 00:40 r...@athlon ~ 519# ls -al /dev/mapper total 0 drwxr-xr-x 2 root root 80 2009-08-29 00:40:20 . drwxr-xr-x 15 root root 4840 2009-08-29 00:40:20 .. crw-rw---- 1 root root 10, 60 2009-08-25 23:34:49 control brw-rw---- 1 root disk 254, 0 2009-08-25 23:35:38 _dev_sdb6 1(0) 00:40 r...@athlon ~ 520# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda12 21157620 12316788 8840832 59% / tmpfs 1943756 8 1943748 1% /lib/init/rw udev 10240 216 10024 3% /dev tmpfs 1943756 0 1943756 0% /dev/shm /dev/sda7 28842748 3282576 25560172 12% /home /dev/sda2 11543048 5322472 6220576 47% /opt /dev/sda4 690736684 419924460 270812224 61% /M: /dev/sdb6 485882616 223585108 262297508 47% /home/htest /dev/sdc6 966642444 647550064 319092380 67% /O: 1(0) 00:40 r...@athlon ~ 521# <<------ end of log ------>> Note the lines: 1(0) 00:40 r...@athlon ~ 518# umount.crypt /home/wife 1(1) 00:40 r...@athlon ~ 519# ls -al /dev/mapper The number in parentheses is the return code of the previous command. I.E. the 'df' command immediately before the 'umount.crypt' command returned (0), but the 'umount.crypt /home/wife' command returned (1). I can find no indication that the 'umount.crypt' failed in any way, but it returned a non-zero value, and pam_mount reports that the 'umount.crypt' failed. -- System Information: Debian Release: 5.0.1 APT prefers proposed-updates APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686-bigmem (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libpam-mount depends on: ii libc6 2.9-6 GNU C Library: Shared libraries ii libhx18 2.9-3 A library providing queue, tree, I ii libpam0g 1.0.1-5+lenny1 Pluggable Authentication Modules l ii libssl0.9.8 0.9.8g-15+lenny1 SSL shared libraries ii libxml2 2.6.32.dfsg-5 GNOME XML library ii mount 2.13.1.1-1 Tools for mounting and manipulatin libpam-mount recommends no packages. Versions of packages libpam-mount suggests: ii cryptsetup 2:1.0.6+20090405.svn49-1 configures encrypted block devices pn davfs2 <none> (no description available) ii fuse-utils 2.7.4-1.1 Filesystem in USErspace (utilities ii lsof 4.78.dfsg.1-4 List open files pn ncpfs <none> (no description available) ii openssl 0.9.8g-15+lenny1 Secure Socket Layer (SSL) binary a ii psmisc 22.6-1 Utilities that use the proc filesy ii smbfs 2:3.2.5-4lenny2 mount and umount commands for the pn truecrypt | tru <none> (no description available) pn xfsprogs <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org