pam_mkhomedir and samba

Stephane Branchoux stephane.branchoux at univ-perp.fr
Tue Apr 3 13:53:23 UTC 2007


Hello,

On a Redhat AS4 update 3,  authentication is configured with ldap server.

In /etc/pam.d/system-auth file , i add :

session     required      pam_mkhomedir.so skel=/etc/skel umask=0077 in 
order to autocreate homedirs.

There is no problem with X11, ssh or ftp connexions but when we try a 
samba connexion with a user without homedir,

autocreate  homedir is not possible.

So, how can i configure samba in order to use pam_mkhomedir ?

When homedir is created, is there a way to set a  user quota  
automatically or log this creation (to script for quota) ?

Many thanks in advance.

 more /etc/pam.d/samba :

#%PAM-1.0
auth       required     pam_nologin.so
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
session    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth

-- 
stephane BRANCHOUX
Centre de Ressources Informatiques de l'Université de Perpignan.
Systèmes/Réseaux
mailto:stephane.branchoux at univ-perp.fr
04 68 66 21 24


-- 
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
CRI UPVD http://www.univ-perp.fr




More information about the redhat-list mailing list