[Samba] special permission on directories

Dale Schroeder dale at BriannasSaladDressing.com
Thu Sep 1 11:54:45 MDT 2011

On 08/31/2011 5:55 PM, Old Eduardo wrote:
> hello list,
> im trying to configure samba, no pdc, just samba for share directories with
> linux users.
> my problem is:
> i have users and groups
> diretory1
> diretory2
> at directory1 group own is x
> at directory2 group own is y
> i make chmod 775 at directory1 and chmod +t, after i make chown root.x
> same in directory2, just change chown to root.y
> my problem: when user make directory and other user make one file at this
> directory, owner and others users can delete files.
> I need same as chmod +t when users create new directory, but dont work with
> me.
> Thanks in advance
> And sorry for bad english.

Maybe adding this to share works for you ==>

     inherit owner = Yes


      inherit owner (S)

    The ownership of new files and directories is normally governed by
    effective uid of the connected user. This option allows the Samba
    administrator to specify that the ownership for new files and
    directories should be controlled by the ownership of the parent

    Common scenarios where this behavior is useful is in implementing
    drop-boxes where users can create and edit files but not delete them
    and to ensure that newly create files in a user's roaming profile
    directory are actually owner by the user.

    Default: //|inherit owner|/ = |no| /

More information about the samba mailing list