[Samba] Question on Inheriting Permissions

Jeremy Allison jra at samba.org
Wed Mar 23 19:39:58 GMT 2005


On Wed, Mar 23, 2005 at 09:38:35AM -0800, Tom Naves wrote:
> I asked this question yesterday and got some really good answers that I will
> be able to use later.  My problem was that I did not ask the question in an
> exact enough way.
> 
> Here is what I am trying to do:
> 
> I have a share on my Samba server called art.  The directory is owned by the
> user root and the group tech doc.  I have set the permissions like this on
> the directroy:
> 
> drwxrwxr_x  That is I want root to have read, write, execute.  I want the
> tech doc group to have read, write, execute and I want all the orther users
> to have read, write.
> 
> I have these permissions set on the directory art.  Is there a way to
> configure my smb.conf so that any file that gets created in or copied to
> this directory to have these permissions and, if possible, to be owned by
> the above user and group?

Set the set-group-id bit on the directory to have it inherit the group
owner. I have a new parameter in SVN (will be in Samba 3.0.14) called
"inherit owner" which will cause a file to inherit it's ownership from
the containing directory. You can also use "inherit permissions".

Jeremy.


More information about the samba mailing list