Bug 9734 - [global] section settings aren't processed in 'include' in some scenarios
Summary: [global] section settings aren't processed in 'include' in some scenarios
Status: NEW
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.6.3
Hardware: x64 Linux
: P5 normal
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-22 10:09 UTC by Tim
Modified: 2013-05-17 14:52 UTC (History)
1 user (show)

See Also:


Attachments

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
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
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.