[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Samba 2.2.x with pam_mkhomedir config



I'm trying to get pam_mkhomedir to auto-create user's home directories (of course) when they log onto Samba for the first time. In the past (Using Samba 2.0.x), I used the 'root preexec' option to specify a bash script to create the home directory, but this doesn't seem to work with Samba 2.2.x.

My /etc/pam.d/samba file looks like this:

auths   sufficient  pam_unix.so nullok
auth    required    pam_smb_auth.so
account required    pam_unix.so
session required    pam_mkhomedir.so umask=0022 skel=/etc/skel

Any help is greatly appreciated.

Thanks,

Ken McCord



Reply to: