[Samba] Home Directories on the fly?
Golden Butler
golden at cnt.org
Fri Oct 13 16:06:00 GMT 2006
Hello all,
I have a functional samba/windind file server (SLES 10) thats a member server of an Active Directory domain. I'm able to successfully resolve user and group accounts from AD. The problem I'm having is samba isn't creating home directories automatically when I try to map to a AD user share from Win XP. What I am able to do is, when I ssh into the machine with an AD user, it creates the the home directory. I can't figure out why because my pam.d configs are configured for this to happen. But obviously I'm missing something. One thing I did try as a result from googling is changing the /home/MYDOM directory to 777, but no cigar. Here's my pam.d configs and smb.conf below. Thanks in advance.
/etc/pam.d/samba:
auth include common-auth
account include common-account
password include common-password
session include common-session
/etc/pam.d/sshd
auth include common-auth
auth required pam_nologin.so
account include common-account
password include common-password
session include common-session
/etc/pam.d/common-session
session required pam_mkhomedir.so
session required pam_limits.so
session required pam_unix2.so
=======================================
/etc/samba/smb.conf:
[global]
workgroup = MYDOM
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
logon drive = H:
idmap gid = 10000-20000
idmap uid = 10000-20000
realm = MYDOM.ORG
security = ADS
template homedir = /home/%D/%U
template shell = /bin/bash
winbind refresh tickets = yes
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
More information about the samba
mailing list