[Samba] Auto-Create Directory
Mac
mac at nibsc.ac.uk
Fri Jul 23 14:07:53 GMT 2004
Hi there,
>
>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.
>
We use:-
[mydocs]
root preexec = if [ ! -d "/n17/profiles/%u/My Documents" ] ;\
then { mkdir -p "/n17/profiles/%u/My Documents" ;\
chown -R %u "/n17/profiles/%u" ; \
chmod -R 0700 "/n17/profiles/%u" ;} ; \
fi
path = /n17/profiles/%u/My Documents
readonly = no
;profile acls = yes
;oplocks = no
To create a (sort of) profile share for our users, but only as needed.
We've not noticed any performance problems. There's not even a noticable
difference between the first time you connect and any subsequent time.
Mac
Assistant Systems Adminstrator @nibsc.ac.uk
dmccann at nibsc.ac.uk
Work: +44 1707 641565 Everything else: +44 7956 237670 (anytime)
More information about the samba
mailing list