[Samba] Automatic creation of home directories when using winbind
dj at 4ict.com
dj at 4ict.com
Fri Apr 12 00:18:03 GMT 2002
On Fri, 12 Apr 2002, Warwick Smith wrote:
> Thanks for your post - do you know if thus will only work if you use
> I have my unix boxes using an LDAP passwd/group backend using the
> pam_ldap/nss_ldap combo and have samba set to use the same database. This
> works great and allows me to have all user info in one place without the
> need for winbind.
> The reason I haven't wanted winbind is the usernames (user+domain) you use
> under unix and the comment in the doc about dynamically created RIDs and if
> the mapping list gets corrupted then your screwed.
> Back to my question - do you know if the /etc/pam.d/samba file is used only
> by the winbind daemon, or does does samba itself use this (and thus can
> create the dirs).
The pam directives are used by Samba itself. So yes, it should also work
for your setup. In generally this should work whenever the UNIX user/group
info comes from another source then the /etc/passwd and /etc/group files.
> I am running redhat 7.2 and have the pam_mkhomedir entry in the session line
> in the /etc/pam.d/system-auth file. I currently have no /etc/pam.d/samba
So does it work after you added the line ? If not then how did you install
Samba? I used the makerpms.sh script to build a rpm and I installed that.
Music Services - Michel Stoffels
GSM : 0496 / 693 453 + Deejayteam
Email : dj at sin.khk.be + Sound & Light rentals
URL : www.sin.khk.be/~dj/ + P.A. services
=========Public PGP-Key at : http://www.sin.khk.be/~dj/publickey.txt==========
Member of Student Information Networking (www.sin.khk.be)
More information about the samba