Hi, 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) Regards, Norman
On Mon, 16 Feb 2004, Norman Zhang wrote:> Hi, > > 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 - John T. -- John H Terpstra Email: jht@samba.org
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/useraddI 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
I think what you are looking for is the "root preexec" directive. Its explained in the smb.conf man page. On Wed, 18 Feb 2004 11:13:23 -0800 Norman Zhang <norman.zhang@rd.arkonnetworks.com> wrote:> > 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 > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >