[Samba] Logon Script

Norman Zhang norman.zhang at rd.arkonnetworks.com
Sun Dec 12 16:01:43 GMT 2004


Hi Christoph,

>> Is [netlogon] only applicable for Samba Domain Controllers? I like to 
>> create use root preexec script to create home folders for first time 
>> users. I'm currently running ADS mode, and using KiXtart logon script. 
>> Would this work?
>
> Creating homedirs for firsttime users is much better achived using the 
> pam_mkhomdir.so pam module. This way the homedir gets created the first 
> time the user authenticates by the pam system.
> You don't need to script this process, which can be tricky...

Thanks for your suggestion. Unfortunately, I had to disable 'obey pam 
restrictions' because https://bugzilla.samba.org/show_bug.cgi?id=1860. 
With it and security = ADS, machine_name home folders are created 
instead user_name home folders in homedir.

I think for now root preexec is the way to go? I need something to check 
for username, create folder if not existed, then assign permission?

Regards,
Norman Zhang


More information about the samba mailing list