[Samba] Samba4 smb.conf parse shares diffently depending on where a section is located.

Jeremy Allison jra at samba.org
Fri Mar 15 10:18:14 MDT 2013

On Fri, Mar 15, 2013 at 12:53:16PM +0100, Daniel Hedblom wrote:
> I guess this works as intended but i wanted to put it here anyhow for
> future reference for others.
> If a share definition is located above [Global] it gets totally different
> attributes. We had enormous problems with rights on one share and no matter
> what we did to acl, xattr and Windows permissions it just would not work
> correctly. A couple of things added to a definition above [Global] is:
>         create mask = 0744
> directory mask = 0755
> map archive = Yes
> map readonly = yes
> store dos attributes = No
> vfs objects =
> Putting the share below the [Global] section solved everything anyhow.

Yeah, that's just an side effect of the parsing being
linear. More of a "well don't do that then" kind of a
thing really. Not worth the large effort needed in
changing the code.


More information about the samba mailing list