Recent Changes - Search:

Bob Brandt

Linux Projects


Server Projects

Desktop Projects

Novell Projects


VMware Projects


N900 (Maemo) Projects


Python Projects


OpenOffice.org Projects


Other Projects


PmWiki

edit SideBar

pam_mount on SLED11

pam_mount is a PAM module that allows the system to automatically mount remote file systems when the user logs in, using the username and password provided at login. This is fantastic (as long as all your accounts are syncronised) when used in conjunction with Novell Account Management.

However, since SLED10, the pam_mount system has changed slightly, using an XML document for its configuration rather than the old style text file.

Below is how I configured my system.

First you need to enable pam_mount in the /etc/pam.d files.

/etc/pam.d/common-auth
#%PAM-1.0
auth	required	pam_env.so	
auth	optional	pam_gnome_keyring.so
auth	required	pam_unix2.so	call_modules=nam

auth	sufficient	pam_succeed_if.so uid < 500 quiet
auth    optional        pam_mount.so    try_first_pass
/etc/pam.d/common-session
#%PAM-1.0
session  optional	pam_mkhomedir.so	
session	required	pam_limits.so	
session	required	pam_unix2.so	
session	optional	pam_umask.so	
session	optional	pam_gnome_keyring.so	auto_start_if=gdm 

session	sufficient	pam_succeed_if.so uid < 500 quiet
session	optional	pam_nam.so
session optional        pam_mount.so

Then you need to modify the /etc/security/pam_mount.conf.xml adding following the line

<volume fstype="cifs" server="server" path="%(USER)" mountpoint="~/Documents" options="iocharset=utf8,uid=%(USER),gid=users,dir_mode=0700,file_mode=0600,domain=ADdomain" />

<volume fstype="cifs" server="server" path="Groups" mountpoint="~/Groups" options="iocharset=utf8,uid=%(USER),gid=users,dir_mode=0700,file_mode=0600,domain=ADDomain" />
Edit - History - Print - Recent Changes - Search
Page last modified on April 20, 2009, at 09:53 AM