Bug 9734 - [global] section settings aren't processed in 'include' in some scenarios
[global] section settings aren't processed in 'include' in some scenarios
Status: NEW
Product: Samba 3.6
Classification: Unclassified
Component: Config Files
x64 Linux
: P5 normal
: ---
Assigned To: Michael Adam
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2013-03-22 10:09 UTC by Tim
Modified: 2013-05-17 14:52 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim 2013-03-22 10:09:10 UTC

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
    usershare owner only = false
... anything here.
    # test override
    usershare owner only = true
# Second scenario, succeed override
  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]

    usershare owner only = false
    comment = anything
    path = /home/CORPUSERS/28851465/Downloads/
    browsable = no
   include = /etc/samba/smb.conf.local

# ... contents in smb.conf.local
   usershare owner only = true
   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,
Comment 1 Tim 2013-03-22 10:10:55 UTC
just one more info:
it happens both in Ubuntu Lucid/Precise  (samba version is 3.4.7, and 3.6.3)
Comment 2 Karolin Seeger 2013-05-17 14:52:53 UTC
Re-assigning to obnox.