[Samba] Resetting default permissions on share

Sébastien Le Ray sebastien-samba at orniz.org
Mon Aug 24 16:43:55 UTC 2015


Hi

setfacl -Rb /srv/samba/share
chown nobodycares:a group with SeDiskOperatorPriviledge /srv/samba/share
chmod g+rwx /srv/samba/share

always did the trick for me

Regards

Le 24/08/2015 18:35, James a écrit :
> Hello,
>
>      How do I reset default folder permissions? For instance I have the
> following in my smb.conf
>
> [share]
>      path = /srv/samba/share
>      read only = no
>
> Now lets say I have modified ACL's and I just need to start clean as if
> I just created the folder for the first time(mkdir -p /srv/samba/share).
> I have tried the following without luck.
>
> setfacl -b /srv/samba/share
> chown root:root /srv/samba/share
> chmod 755 /srv/samba/share
>
> Every time I go back to the share tab using Windows Computer Management
> I see my previous entries. I would expect to see the default 'Everyone'
> group. The security tab is missing the 'CREATE OWNER' and 'CREATE GROUP'
> as well. Not to mention the "Include inheritable permissions from this
> object's parent" is un-ticked from a prior modification. It should
> default on. With that said. How does one start over on a share when
> things don't go as planned? Using Debian Wheezy and Samba 4.1.17 member
> server. Thanks.
>
>




More information about the samba mailing list