pam_mount problem

Murray Trainer mtrainer at central-data.net
Fri May 19 08:08:34 UTC 2006


On Fri, 2006-05-19 at 09:46 +0200, Martin Obermair wrote:
> hello together,
> 
> i am to stupid to configure pam_mount correctly.
> 
> i configurd /etc/pam.d/gdm to automount a smb share on gnome-login.
> 
> the pam entries seems to be correct (i've got entries in /var/log/auth.log)
> 
> her is my local user config ~/.pam_mount.conf:
> 
> volume user smbfs samba POST /home/martin/POST - - -
> 
> (samba = name of samber server in our network
> POST = name of samba share
> /home/martn/POST = mount point)
> 
> on login in get an error message:
> 
> no volumes to mount!
> 
> both config files (local and /etc/security/pam_mount.conf) are chmod 
> 777!!!!
> 
> /etc/security/pam_mount.conf:
> 
> debug 1
> mkmountpoint 1
> fsckloop /dev/loop7
> luserconf .pam_mount.conf
> options_allow	nosuid,nodev,loop,encryption,fsck
> 
> lsof /usr/sbin/lsof %(MNTPT)
> fsck /sbin/fsck -p %(FSCKTARGET)
> losetup /sbin/losetup -p0 "%(before=\"-e\" CIPHER)" "%(before=\"-k\" KEYBITS)" %(FSCKLOOP) %(VOLUME)
> unlosetup /sbin/losetup -d %(FSCKLOOP)
> cifsmount /bin/mount -t cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o "username=%(USER)%(before=\",\" OPTIONS)"
> 
> smbmount /usr/bin/smbmount   //%(SERVER)/%(VOLUME) %(MNTPT) -o "username=%(USER)%(before=\",\" OPTIONS)"
> ncpmount /usr/bin/ncpmount   %(SERVER)/%(USER) %(MNTPT) -o "pass-fd=0,volume=%(VOLUME)%(before=\",\" OPTIONS)"
> smbumount /usr/bin/smbumount %(MNTPT)
> ncpumount /usr/bin/ncpumount %(MNTPT)
> 
> 
> umount /bin/umount %(MNTPT)
> 
> lclmount /bin/mount -p0 -t %(FSTYPE) %(VOLUME) %(MNTPT) "%(before=\"-o\" OPTIONS)"
> cryptmount /bin/mount -t crypt "%(before=\"-o\" OPTIONS)" %(VOLUME) %(MNTPT)
> nfsmount /bin/mount %(SERVER):%(VOLUME) %(MNTPT) "%(before=\"-o\" OPTIONS)"
> mntagain /bin/mount --bind %(PREVMNTPT) %(MNTPT)
> 
> mntcheck /bin/mount # For BSD's (don't have /etc/mtab)
> pmvarrun /usr/sbin/pmvarrun -u %(USER) -d -o %(OPERATION)
> 
> i've tried all kinds of configuration but i never mounted a file system 
> (i think i am to stupid!)
> 
> thanks
> 
> greetinx from bavaria!
> 
> martin

Hi Martin,

Try mounting the share manually first - eg.

smbclient -U userid //server/sharename

Have you added the required pam_mount lines to the appropriate service
file in /etc/pam.d.  Use the login service and test it using a console
command line login with debug turned on in pam_mount.conf to see what is
happening. There is an unresolved bug with using pam_mount with ssh so
it probably wont work logging in via ssh.

Regards

Murray




More information about the Pam-list mailing list