This is a discussion on Re: [Samba] Auto-Create Directory within the Samba forums, part of the Networking and Network Related category; Hi there, > >I have a samba server set so that each user in a windows 2003 >active ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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@nibsc.ac.uk Work: +44 1707 641565 Everything else: +44 7956 237670 (anytime) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba |