[Samba] using include directives for shares?

scott_stone at trendmicro.com scott_stone at trendmicro.com
Tue Sep 28 13:06:05 MDT 2010


sigh... I know I pressed the = button but I guess not hard enough.. and I wasn't looking for typos when debugging :)  thanks for the good catch, that seemed to fix it... 

Still having performance problems with it but I'll start a new thread on that with more details.

====================
Scott Stone <scott_stone at trendmicro.com>
Lead Developer, DCS-RD
Trend Micro, Inc. http://www.trendmicro.com

-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] On Behalf Of Juan Asensio Sánchez
Sent: Tuesday, September 28, 2010 2:18 AM
To: Roel van Meer; samba at lists.samba.org
Subject: Re: [Samba] using include directives for shares?

include = /path/to/file

(note "=")

2010/9/28 Roel van Meer <rolek at bokxing.nl>

> scott_stone at trendmicro.com writes:
>
>  From the smb.conf manpage, it says that an 'include <file>' will include
>> that file into smb.conf as if it were typed in place.
>>
>
> Yes, that should work.
>
> Some things you want to look at:
> - Is the include file world readable?
> - Does the output of 'testparm -sv' give any clues?
>
> Regards,
>
> roel
>
>
>
>
>>
>> /etc/samba/smb.conf contains:
>>
>>
>> [global]
>>
>>               <various global parameters>
>>
>>
>> include /etc/samba/smb.conf.local
>>
>>
>>
>>
>> and then /etc/samba/smb.conf.local contains my share definitions.  I'm
>> doing it this way because I'm using puppet to manage the global parameters
>> on my various file servers, but each individual file server may have a
>> different local configuration that operations guys without access to the
>> puppetmaster might need to change.  It seems to me that this should be
>> supported as I'm doing it, but it appears not - the shares defined in
>> smb.conf.local aren't getting served.  What am I doing wrong, or am I
>> running up against a known limitation?
>>
>>
>> Using CentOS 5, latest updates installed, samba RPM version
>> samba-3.0.33-3.29.el5_5.1
>>
>>
>> ====================
>>
>> Scott Stone <scott_stone at trendmicro.com>
>>
>> Lead Developer, DCS-RD
>>
>> Trend Micro, Inc. http://www.trendmicro.com
>>
>>
>>
>> TREND MICRO EMAIL NOTICE
>> The information contained in this email and any attachments is
>> confidential and may be subject to copyright or other intellectual
>> property protection. If you are not the intended recipient, you are not
>> authorized to use or disclose this information, and we request that you
>> notify us by reply mail or telephone and delete the original message from
>> your mail system.
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.


More information about the samba mailing list