I use 'include' paramter in a smb.conf to do test the Samba. In some test case, [global] section appears in a smb.conf after [sharename] section. However, Samba ignores service parameters in [global] section in this case. For example, refere the following commands and outputs: $ cat smb.conf [printer] printable = yes [file] [global] printing = sysv read only = no $ testparm -s smb.conf Load smb config files from smb.conf Processing section "[printer]" No path in service printer - using /tmp Processing section "[file]" No path in service file - using /tmp Loaded services file OK. # Global parameters [global] read only = No printing = sysv [printer] path = /tmp read only = Yes printable = Yes printing = bsd [file] path = /tmp read only = Yes printing = bsd
by design. no plans to rewrite the smb.conf parser.