Re: [Samba] Why %M makes two log files?

2004-11-16 Thread Andreas
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 root0 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.

ok

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Why %M makes two log files?

2004-11-12 Thread Gerald (Jerry) Carter
-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-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Why %M makes two log files?

2004-11-12 Thread Andreas
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.
> 
> Same.

Not only that: I also have "smbd.log" and "log.smbd". smbd.log is always
empty.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Why %M makes two log files?

2004-11-12 Thread Adam Tauno Williams
> On Fri, Nov 12, 2004 at 08:26:54AM -0500, Adam Tauno Williams wrote:
> > I use log.%M to get per client logs.  This works but I always end up
> > with -
> > [EMAIL PROTECTED] root]# cd /var/log/samba
> > [EMAIL PROTECTED] samba]# ls -l log.pc01699
> > -rw-r--r--1 root root  2642617 Nov 12 07:30 log.pc01699
> > [EMAIL PROTECTED] samba]# host pc01699
> > pc01699.morrison.iserv.net has address 192.168.19.191
> > [EMAIL PROTECTED] samba]# host 192.168.19.191
> > 191.19.168.192.in-addr.arpa domain name pointer
> > PC01699.morrison.iserv.net.
> > [EMAIL PROTECTED] samba]# ls -l log.192.168.19.191
> > -rw-r--r--1 root root0 Oct 15 07:26
> > log.192.168.19.191
> > [EMAIL PROTECTED] samba]#
> Me too, but I use %m instead of %M. 

Same here, that was a type.

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

Same.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Why %M makes two log files?

2004-11-12 Thread Andreas
On Fri, Nov 12, 2004 at 08:26:54AM -0500, Adam Tauno Williams wrote:
> I use log.%M to get per client logs.  This works but I always end up
> with -
> 
> [EMAIL PROTECTED] root]# cd /var/log/samba
> [EMAIL PROTECTED] samba]# ls -l log.pc01699
> -rw-r--r--1 root root  2642617 Nov 12 07:30 log.pc01699
> [EMAIL PROTECTED] samba]# host pc01699
> pc01699.morrison.iserv.net has address 192.168.19.191
> [EMAIL PROTECTED] samba]# host 192.168.19.191
> 191.19.168.192.in-addr.arpa domain name pointer
> PC01699.morrison.iserv.net.
> [EMAIL PROTECTED] samba]# ls -l log.192.168.19.191
> -rw-r--r--1 root root0 Oct 15 07:26
> log.192.168.19.191
> [EMAIL PROTECTED] samba]#

Me too, but I use %m instead of %M. 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.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Why %M makes two log files?

2004-11-12 Thread Adam Tauno Williams
I use log.%M to get per client logs.  This works but I always end up
with -

[EMAIL PROTECTED] root]# cd /var/log/samba
[EMAIL PROTECTED] samba]# ls -l log.pc01699
-rw-r--r--1 root root  2642617 Nov 12 07:30 log.pc01699
[EMAIL PROTECTED] samba]# host pc01699
pc01699.morrison.iserv.net has address 192.168.19.191
[EMAIL PROTECTED] samba]# host 192.168.19.191
191.19.168.192.in-addr.arpa domain name pointer
PC01699.morrison.iserv.net.
[EMAIL PROTECTED] samba]# ls -l log.192.168.19.191
-rw-r--r--1 root root0 Oct 15 07:26
log.192.168.19.191
[EMAIL PROTECTED] samba]#

DNS works both ways,  but I always get a log.{IP NUMBER} file as well as
log.{MACHINE NAME}.  The log.{IP NUMBER} files are always zero sized.

Is this a bug or a misconfiguration of something (if so, pointers
appreciated)?

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba