[Samba] Why %M makes two log files?
andreas at conectiva.com.br
Tue Nov 16 12:13:06 GMT 2004
On Fri, Nov 12, 2004 at 03:35:33PM -0600, Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Andreas wrote:
> | On Fri, Nov 12, 2004 at 08:34:28AM -0500, Adam Tauno Williams wrote:
> |>> But the result is the same, I also get
> |>> empty log files with an IP number in addition to the
> |>> correct log files with the client's netbios name.
> |>> samba-3.0.7 and 3.0.8.
> | Not only that: I also have "smbd.log" and "log.smbd".
> | smbd.log is always empty.
> Do you mean log.smbd is 0 bytes ?
I have log file = /var/log/samba/%m.log in smb.conf.
My logs look like this:
# l /var/log/samba/*smbd*
-rw-r--r-- 1 root root 1632 2004-11-16 10:08 /var/log/samba/log.smbd
-rw-r--r-- 1 root root 0 2004-11-11 18:55 /var/log/samba/smbd.log
# l /var/log/samba/*nmbd*
-rw-r--r-- 1 root root 4031 2004-11-16 10:08 /var/log/samba/log.nmbd
-rw-r--r-- 1 root root 3742 2004-11-12 18:44 /var/log/samba/nmbd.log
> The process is like this...
> - - smbd starts up and open a debug file to log and
> issues parsing smb.conf
> - - smbd reads a new log file directive from smbd and
> so reopens the new debug file
> - - smbd gets a connection from a client and forks
> a copy of itself opening a new log file based on the ip
> address of the socket connection
> - - smbd gets the netbios session setup or the SPNEGO
> NTLMSSP session setup request and reopens the new log
> file in the machines netbios name (log.%m)
> What you are seeing is behavipr by design.
More information about the samba