[Samba] ACL set in Windows not set in Samba
viktor at troja.ch
Sun May 13 19:17:50 UTC 2018
Thanks for replying again.
On 13 May 2018 at 18:12, Rowland Penny via samba <samba at lists.samba.org>
> On Sun, 13 May 2018 17:39:39 +0200
> Viktor Trojanovic via samba <samba at lists.samba.org> wrote:
> > username map = /etc/samba/samba_usermap
> What is in the 'samba_usermap' ?
!root = SAMDOM\Administrator SAMDOM\administrator
> > [myshare]
> > path = /srv/samba/myshare
> > comment = "My Data"
> > guest ok = no
> > writeable = yes
> > create mask = 0666
> > directory mask = 0777
> > acl_xattr:ignore system acls = yes
> As you are trying to use Windows ACLs, you should follow the info on
> the page you linked and stop getting creative ;-)
Trust me, I have no intention of getting creative. This is how I set up the
share a year or two ago and haven't changed it in the meantime. It used to
work. Now all of a sudden something doesn't.
> Remove the 'guest ok' line, it is the default.
> Remove the two 'mask' lines, the last line is actually telling Samba
> to ignore them.
Yes, I read that, but didn't hurry to remove them as they shouldn't hurt.
Will do so now, though.
> > Slightly off topic: Is my assumption correct that gidNumbers and
> > uidNumbers do not need to be distinct between each other, i.e. can a
> > user have the same number as uidNumber that a group has as gidNumber?
> Yes, whilst every user must have a unique uidNumber and every group
> must have a unique gidNumber, there is nothing stopping a user and a
> group having the same number.
That's what I thought, thanks.
Not knowing what else to try, I'll just go ahead and restart everything and
see if this has any impact.
More information about the samba