[Samba] 'inherit owner' doesn't play nice with 'force directory mode'
Jeremy Allison
jra at samba.org
Wed Aug 19 12:20:10 MDT 2009
On Tue, Aug 18, 2009 at 08:09:00PM -0700, jw wrote:
> On Tue, Aug 18, 2009 at 3:11 PM, Jeremy Allison<jra at samba.org> wrote:
> > To allow these to apply to the new directory, set :
> >
> > directory mask = 0775
> >
> > The reason you're not getting 775 perms on the new directory
> > is that the default directory mask is 0755, which masks out
> > the write permission for the group.
> >
> > Just setting inherit owner, and directory mask = 0775
> > should be enough.
>
> Hi,
>
> I gave this a shot, but it's still not quite doing what I would expect.
> I have:
>
> inherit owner = yes
> directory mask = 7775
>
> And this produces:
>
> drwxrwxr-x 2 nobody sambaguest 512 Aug 18 19:54 New Folder (20)
>
> The problem is the sticky bit is not set. I want the sticky bit to be
> set so that new files created under this directory cannot be edited
> once created.
Ok, this works with 3.4.0. You need to set:
inherit owner = yes
inherit permissions = yes
directory mask = 07775
Jeremy.
More information about the samba
mailing list