Hi, I'm testing the following scenarios about smb.conf for enable centralized global settings and customize-able local settings. # First scenario, succeed override # [global] -> [local] -> [global] in same file [global] usershare owner only = false [test] ... anything here. [global] # test override usershare owner only = true # Second scenario, succeed override [global] usershare owner only = false include = /etc/samba/smb.conf.2 # ... contents in smb.conf.2 ... usershare owner only = true # Third scenario # [global] -> [test] -> [local] 'include' -> [global] -> [test] [global] usershare owner only = false [test] comment = anything path = /home/CORPUSERS/28851465/Downloads/ browsable = no [local] include = /etc/samba/smb.conf.local # ... contents in smb.conf.local [global] usershare owner only = true [test] browsable = yes for the third scenario, overriding failed on [global] section, but succeed for [test] section. Thank you for looking into this. P.S. the background reason for scenario 3 is we want to simply manage smb.conf globally, while enable localization in smb.conf.local with certain levels: 1. user won't override [global] if he doesn't open a new [global] section in smb.conf.local. (avoid unconscious changes) 2. sysadmin with enough knowledge still can override [global] by opening a [global] section in local file. Best Regards, Tim
just one more info: it happens both in Ubuntu Lucid/Precise (samba version is 3.4.7, and 3.6.3)
Re-assigning to obnox.