Do I need a separate INCLUDE in each section, or can I have one INCLUDE at the end and just include needed sections? Way 1: smb.conf: [Global] ....... INCLUDE smb-global.conf [netlogon] ...... smb-global.conf: sambaPwdCanChange=1 Way 2: smb.conf: [Global] ....... [netlogon] ...... INCLUDE smb-custom.conf smb-custom.conf: [Global] sambaPwdCanChange=1 [TestShare] ..... ======================= Which way???
As I know, includes on Samba are like includes at Apache: You don't need to separete in sections, because each include has it own section. I don't know if you "Way 1" will work, but "Way 2" will. I always do something like: [global] ........ INCLUDE share.adm.conf INCLUDE share.people.conf share.people.conf: [Person1] .... [Person2] .... share.adm.conf: [Share 1] .... [Share 2] .... (Sorry my poor enghish)
Hallo, Robert, Du meintest am 21.10.10:> Do I need a separate INCLUDE in each section, or can I have one > INCLUDE at the end and just include needed sections?"include" replaces the calling "line" with the lines of the invoked file. You can put many "include" lines into the "smb.conf". At nearly(?) every place. Please excuse my gerlish ... Viele Gruesse! Helmut
On 21 October 2010 17:19, Robert Moskowitz <rgm at htt-consult.com> wrote:> Do I need a separate INCLUDE in each section, or can I have one INCLUDE at > the end and just include needed sections? > > Way 1: > > smb.conf: > > [Global] > > ....... > > INCLUDE smb-global.confNote that the syntax is: include = /path/to/smb-global.conf Don't forget the "=". -- Michael Wood <esiotrot at gmail.com>