[Samba] Two questions
Kyle
kl at attitia.com
Mon Oct 20 21:41:57 GMT 2008
John,
read the 'syslog' and 'syslog only' params in smb.conf on CentOS 5.2.
Basically set 'syslog = 0' to send everything to /var/log/samba
You'll still get a start up line of some sort in /var/log/messages, but
otherwise everything else will go to the samba specific logs
------------------------------------------------------------------------
Kind Regards
Kyle
Tel: +61 (0)431 88 3978
John Oliver wrote:
> On Mon, Oct 20, 2008 at 04:26:49PM -0400, Ryan Novosielski wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> The first one I believe is in the manual, and/or it is a compile flag.
>> Look for syslog in the Samba manual.
>>
>> John Oliver wrote:
>>
>>> 1) A lot (but not all) of my smbd / nmbd logs are going to
>>> /var/log/messages instead of /var/log/samba/ I tried a couple of things
>>> in syslog.conf, but just don't know the magic word for samba logs.
>>>
>
> That doesn't really help.
>
> I'm using CentOS 5.2 and the Samba that comes with... 3.0.28 There's a
> /var/log/samba/ which contains an smbd.log and an nmbd.log Some stuff
> is logged to them... other stuff is not. The fact that those files
> exist strongly suggests that all Samba-related logs are intended to go
> to those files. "Using Samba" is a five-year old book, and it's
> reference to syslog is to do:
>
> daemon.* /var/log/daemon.log
>
> which is using a very heavy, very blunt instrument that doesn't really
> do what it looks like newer OSes and versions of Samba ought to be able
> to do.
>
>
More information about the samba
mailing list