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

Adrian F. Nagle, IV anagle at naglenet.org
Sat Jan 31 15:51:17 MST 2009


Dennis,

Thank you.  I'll look at your suggestions in more detail.  Part of the issue is that the .conf file was changed to an xml format.  In my original post, I quoted my mount statements.  Much of the help online is too old.

Adrian



> From: Dennis J Perkins <dennisjperkins at comcast.net>
> Does your  pam_mount in the auth section look like this?  use_first_pass
> tells it to use the password that was used earlier by pam_unix;
> otherwise, I think you need to enter the password more than once.
> 
> auth       optional    /lib/security/pam_mount.so use_first_pass
> 
> 
> It should like this in the session section:
> 
> session    optional    /lib/security/pam_mount.so
> 
> 
> See if you have file /etc/security/pam_mount.conf. That file seems to be
> necessary.  
> 
> If it has this line:
> 
>     smbmount /bin/mount -t smbfs
> 
> try changing smbfs to cifs.  You need to have /sbin/mount.cifs for this
> to work.
> 
> 
> You also need to tell pam_mount to mount something.  I found this
> example, but I don't use Samba, so I cannot tell you how to use it.  I
> don't know if this belongs in a Samba file or if it should be in
> pam_mount.conf.
> 
>     volume * smb & /home/& uid=& - -
> 
> Another site shows what I think is the setup for this line:
> 
>    volume * cifs servername sharename ~/mount-point dmask=0751 - -
> 
> 
> I have a PAM book packed away somewhere that might provide some help on
> pam_mount.
> 

 -- 
Adrian Nagle ~ anagle at naglenet.org ~ http://www.naglenet.org/


More information about the clue-tech mailing list