[clue-tech] Sharing samba with libpam-mount?

David L. Anselmi anselmi at anselmi.us
Fri Jan 30 22:35:51 MST 2009


Adrian F. Nagle, IV wrote:
> I added "@include common-pammount" to etc/pam.d/login, su, and kdm
> (and not the kdm-np).

That's gutsy.  PAM is supposed to be very arcane.  It may put something
useful in your logs though.  (/var/log/auth.log, I guess)

> The config file apparently changed to an xml format file.

Ugh.  I wonder why that would be a good thing?

> I added the following to the bottom of
> /etc/security/pam_mount.conf.xml:
> 
> <volume user="*" | pgrp="*" | sgrp="winusers" fstype="smbfs" 
> server="//jerome/srvshare" path="nagle_ext1" 
> mountpoint="/media/nagle_ext1" />
> 
> <volume users="*" fstype="smbfs" server="//jerome/srvshare" 
> path="homes" mountpoint="/home/%(USER)/remote" options="dmask=0711" 
> />

Try server="jerome" and path="srvshare".  I'm not sure you need both
volume blocks.

> I'm not sure how to debug this.  For one, is there a way restart this
> module without rebooting?

I don't think you need to restart any PAM stuff.  It should work after 
you change the config.

You might also need the smbfs package if you don't already have it 
(contains the smbmount command).

Dave



More information about the clue-tech mailing list