[Samba] Values set in Include files and SMB.CONF

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Oct 6 06:08:53 MDT 2010


On Wed, Oct 06, 2010 at 07:59:57AM -0400, Andy Liebman wrote:
> I use "include" files to define samba shares for individual users,
> so that each user has his/her own smb.username.conf file. Makes
> maintenance straightforward when you have hundreds of users. :)
> 
> Now I want to use "include" files for another purpose.  My many
> servers all have a standard smb.conf file, but I want to be able to
> customize the global settings on some servers by creating a file
> called "smb.custom.conf" and referring to this file in the global
> section of my main smb.conf.  The smb.custom.conf file will either
> be empty, or have custom values listed for some parameters. My
> question is, if I have one set of values in the global setting of my
> smb.conf file (for example, "use sendfile = yes" or "max xmit =
> 32768"), and then I put different values for those same parameters
> in an "include" file, will the values from the "include" file be the
> ones that get applied?
> 
> When I run "testparm", indeed I see the values from the include file
> and NOT from smb.conf.  I just want to make sure there isn't some
> hidden trap in what I am doing.  Good advice welcome.

We interpret the smb.conf files as they come in. Later
values from wherever overwrite earlier ones.

Volker


More information about the samba mailing list