Hardy and pam_mount

Brian Blater brb.lists at gmail.com
Thu May 15 18:02:42 UTC 2008


I recently did a fresh install of Kubuntu Hardy on my laptop (Lenovo
T60) and went to setup pam_mount to mount Samba shares at the time a
user logs in. I modified /etc/pam.d/kdm and /etc/pam.d/login with
@include common-pammount at the end of the files. I then modified
/etc/security/pam_mount.conf.xml with the following:

<debug enable="1" />
<luserconf name=".pam_mount.conf.xml" />
<mntoptions deny="suid,dev" />

I then created ~/.pam_mount.conf.xml with the following for a user:

<?xml version="1.0" encoding="UTF-8"?>

<pam_mount_user>
<volume
   user="*"
   fstype="cifs"
   server="servername"
   path="share"
   mountpoint="/home/bblater/share"
   options="uid=bblater,dom=domainname"
/>
</pam_mount_user>

Now, other than the fact that the file structure for
/etc/security/pam_mount.conf.xml and ~/.pam_mount.conf.xml have
changed I have had this working on Gutsy, but I can not get it to work
on Hardy. I can not get the mapping to work. I can manually mount just
fine the same shares etc.

In /var/log/auth.log everything looks just fine:
May 14 15:41:26 test login[6170]: pam_mount(rdconf1.c:554) path to
luserconf set to /home/bblater/.pam_mount.conf.xml
May 14 15:41:26 test login[6170]: pam_mount(pam_mount.c:311) saving
authtok for session code
May 14 15:41:26 test login[6170]: pam_unix(login:session): session
opened for bblater by bblater(uid=0)
May 14 15:41:26 test login[6170]: pam_mount(rdconf1.c:554) path to
luserconf set to /home/bblater/.pam_mount.conf.xml
May 14 15:41:26 test login[6170]: pam_mount(pam_mount.c:460) Entered
pam_mount session stage
May 14 15:41:26 test login[6170]: pam_mount(pam_mount.c:481) back from
global readconfig
May 14 15:41:26 test login[6170]: pam_mount(pam_mount.c:485) going to
readconfig user
May 14 15:41:26 test login[6170]: pam_mount(pam_mount.c:54 done
opening session (ret=3)

I'm stuck at this point and can't figure out what is happening. Have I
missed something in this config or is this a bug of some kind? I've
found a few more instances doing a google search where others appear
to be having this same problem.

Any help would be greatly appreciated.

Brian




More information about the kubuntu-users mailing list