[Samba] Log file confusion

Scott Lovenberg scott.lovenberg at gmail.com
Tue Feb 12 22:03:49 GMT 2008


Ed Kasky wrote:
> I am currently running Samba 3.0.28.0 from rpm on FC6.  I have the 
> following in smb.conf:
>
> log level = 2
> log file = /var/log/samba/%m.log
>
> Yet, when I start the daemons, I get log.%m:
>
> drwx------  4 root root  4096 Feb 12 06:55 .
> drwxrwxr-x 17 root bin   4096 Feb 12 05:02 ..
> drwx------  4 root root  4096 Feb  8  2007 cores
> -rw-r--r--  1 root root  4269 Feb 12 06:55 log.nmbd
> -rw-r--r--  1 root root   872 Feb 12 06:55 log.smbd
> drwx------  2 root root 12288 Feb 10 05:00 old
> -rw-r--r--  1 root root   569 Feb 12 06:55 smbd.log
>
> I checked for multiple smb.conf files and the init script for anything 
> that might indicate a log setting but keep coming up just scratching 
> my head.
>
> Does anyone have any light to shed on where the log.%m keeps coming 
> from?  Is this something that can be compiled into the package that is 
> not over-ridden by the conf?
>
> Thanks in advance for any hints on this.  I know it's a little thing 
> but it's driving me nuts...
>
> Ed
>
> . . . . . . . . . . . . . . . . . .
> Randomly Generated Quote (267 of 1355):
> A closed mouth gathers no foot.
>
Are you sure you don't have "log file =" twice in your smb.conf?
Try this: 'grep -Ri "\%m" /etc/ /usr/local/'


More information about the samba mailing list