[Samba] Auto-Create Directory

José Ildefonso Camargo Tolosa icamargo at merkurio.com.ve
Fri Jul 23 14:44:31 GMT 2004


Ray Holtz wrote:

>I have a samba server set so that each user in a windows 2003 
>active directory can have their own personal, private share.  I 
>would like to know how to set up Samba so that their directory 
>is created automatically, rather than me creating 1300 
>directories on the linux server.  
>
>I cannot use pam_mkhomedir.so because 'security = ads' in 
>smb.conf and 'encryption = yes' must be there.  I thought about 
>  
>

Yes, you can.  It will use samba for session, not for auth (obey pam
restrictions = Yes).

I'm using it, on a samba PDC.  Not sure If it will work with
security=ads (I don't use w2k3, I use a samba PDC (I have even customers
who are changing their w2k3 servers to samba, because of the CAL)).

>making a script to run in preexec everytime, but would that take 
>up a lot of CPU cycles?  This is for a highschool, so every hour 
>many, many students will all be logging on at the same time.  Is 
>there another way to have samba create a home directory for a 
>user automatically?
>
>Thanks,
>Ray
>
>
>  
>




More information about the samba mailing list