Daniel Hedblom
2013-Mar-15 11:53 UTC
[Samba] Samba4 smb.conf parse shares diffently depending on where a section is located.
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. Daniel Hedblom
Jeremy Allison
2013-Mar-15 16:18 UTC
[Samba] Samba4 smb.conf parse shares diffently depending on where a section is located.
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. Jeremy.
Maybe Matching Threads
- Problem joining Samba 4 to an older Samba 4 alpha 17
- Where is the default 'smb.conf' located?
- where to locate smb.conf for Samba4
- Location of grub.conf etc. with UEFI boot (CentOS 6)
- storing profiles on a 3rd host (NetApp), and [profiles] section of smb.conf