[Samba] Why %M makes two log files?

Gerald (Jerry) Carter jerry at samba.org
Fri Nov 12 21:35:33 GMT 2004


-----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 ?

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.




cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBlSylIR7qMdg1EfYRAs5jAJ9mDYkqRcK0F8MoEyo6uUznxT9H4gCgzHce
QdaE3uUmNbymnGVXDoTGSaw=
=dGjE
-----END PGP SIGNATURE-----


More information about the samba mailing list