[Samba] Re: Automatic Folder Creation
Norman Zhang
norman.zhang at rd.arkonnetworks.com
Wed Feb 18 19:13:23 GMT 2004
John H Terpstra wrote:
> On Mon, 16 Feb 2004, Norman Zhang wrote:
>>Samba creates home folders automatically for new users that connects to
>>it. Is there a way to get Samba to create a "username" folder in another
>>parition with 777 permission (similiar to home)?
>>
>>e.g.,
>>
>>/home/My Domain/nzhang (default creation)
>>
>>/sharepartition/nzhang (wish to have)
>
> Check /etc/defaults/useradd
I checked useradd only creates home folders but not others. I could
write a bash script
SHARED=/sharepartition/$1
md $SHARED
chmod 777 $SHARED
chown $1.$1 $SHARED
But how can I link this with the uid connecting to Samba?
Regards,
Norman
More information about the samba
mailing list