PDA

View Full Version : [ubuntu] 8.04 Heron Hardy: XML Pam_mount problem



nbremond
May 4th, 2008, 03:32 PM
Hello,

I've just upgrade to 8.04 and I can NOT get pam_mount to automatically mount samba shares (located on another server) at login.
I have used this tutorial http://doc.ubuntu-fr.org/installation/monterpartagewindows, 2nd method, and tryed to adapt it for XML config file (the new PAM seems to require XML config files now), but nothing is mounted at login.

Here are my config files:

common-pammount
--------------------------------------------------------
# for configuration details about different login programs see
# /usr/share/doc/libpam-mount/README.Debian.gz

#auth optional pam_mount.so try_first_pass
#session optional pam_mount.so try_first_pass

auth optional pam_mount.so use_first_pass
session optional pam_mount.so
--------------------------------------------------------

/etc/pam.d/gdm
--------------------------------------------------------
#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
@include common-auth
auth optional pam_gnome_keyring.so
@include common-account
session required pam_limits.so
@include common-session
session optional pam_gnome_keyring.so auto_start
@include common-password
@include common-pammount
--------------------------------------------------------

/etc/security/pam_mount.conf.xml
--------------------------------------------------------
<debug enable="1" />
<luserconf name=".pam_mount.conf.xml" />
<mntoptions allow="*" />
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="photos" mountpoint="/home/nbremond/photo" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<msg-authpw>pam_mount password:</msg-authpw>
--------------------------------------------------------

~/.pam_mount.conf.xml
--------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="photos" mountpoint="/home/nbremond/photo" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="travail" mountpoint="/home/nbremond/travail" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="download" mountpoint="/home/nbremond/download" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="documents" mountpoint="/home/nbremond/documents" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="mes_video" mountpoint="/home/nbremond/mes_video" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="music" mountpoint="/home/nbremond/music" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="nbremond" mountpoint="/home/nbremond/nbremond" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="recordings" mountpoint="/home/nbremond/recordings" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="techno" mountpoint="/home/nbremond/techno" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="transfert" mountpoint="/home/nbremond/transfert" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
<volume user="nbremond" fstype="smbfs" server="192.168.0.2" path="www" mountpoint="/home/nbremond/www" options="uid=nbremond,gid=nbremond,dmask=777,fmask=777,cred entials=/root/.smbcredentials,workgroup=MSHOME"/>
--------------------------------------------------------

Here is the output of /var/log/auth.log
--------------------------------------------------------
May 4 15:41:16 multimedia gdm[6170]: PAM [error: /lib/security/pam_gnome_keyring.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type]
May 4 15:41:16 multimedia gdm[6170]: PAM adding faulty module: /lib/security/pam_gnome_keyring.so
May 4 15:41:26 multimedia gdm[6170]: pam_mount(rdconf1.c:554) path to luserconf set to /home/nbremond/.pam_mount.conf.xml
May 4 15:41:26 multimedia gdm[6170]: pam_mount(pam_mount.c:311) saving authtok for session code
May 4 15:41:26 multimedia gdm[6170]: pam_unix(gdm:session): session opened for user nbremond by (uid=0)
May 4 15:41:26 multimedia gdm[6170]: pam_mount(rdconf1.c:554) path to luserconf set to /home/nbremond/.pam_mount.conf.xml
May 4 15:41:26 multimedia gdm[6170]: pam_mount(pam_mount.c:460) Entered pam_mount session stage
May 4 15:41:26 multimedia gdm[6170]: pam_mount(pam_mount.c:481) back from global readconfig
May 4 15:41:26 multimedia gdm[6170]: pam_mount(pam_mount.c:485) going to readconfig user
May 4 15:41:26 multimedia gdm[6170]: pam_mount(pam_mount.c:548) done opening session (ret=3)
May 4 16:09:01 multimedia CRON[7070]: pam_unix(cron:session): session opened for user root by (uid=0)
May 4 16:09:01 multimedia CRON[7070]: pam_unix(cron:session): session closed for user root
May 4 16:17:01 multimedia CRON[7197]: pam_unix(cron:session): session opened for user root by (uid=0)
May 4 16:17:01 multimedia CRON[7197]: pam_unix(cron:session): session closed for user root
--------------------------------------------------------


Any idea to get this working ?
Thanks in advance.
Bernard.