[Samba] How force inherit group info on new created files ?

Konkol, Josh JKonkol at guidemail.com
Fri May 24 08:18:02 GMT 2002


Set the sgid on the parent directory.  
 
I.E.   chmod g+s /directory  
 
That should force the group of all _new_ files to the group of the parent
directory.  
 
Note that this does NOT affect permissions.  Your umask will do that.  You
can overide the umask by setting the force create mode in the smb.conf file.
 
HTH
 
Josh

-----Original Message-----
From: Kestutis Saldziunas [mailto:k.saldziunas at medbank.lt]
Sent: Saturday, May 25, 2002 9:26 AM
To: samba at lists.samba.org
Subject: [Samba] How force inherit group info on new created files ?


Hello, 
 
I have plenty shared dirctories, which are accessed through samba 2.2.4 PDC.
Mostly for each directory is created user group, which can access, modify
and create files, subdirectories. I  would like to force samba to set on new
created files and subdirecotries group info according shared directory.
 
For example :
\\SERV1\\Install <file://\\SERV1\\Install>  (belongs to group 'adm')
new created files now has 'users' group, but I want to be 'adm'.
 
Thanks for any advice,
Kestutis

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list