Bug 16644 - samba's log files are confused
Summary: samba's log files are confused
Keywords:
Status: CLOSED DUPLICATE of bug 18455
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: samba
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
URL:
Whiteboard:
: 27835 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-20 18:42 UTC by Jonathan Kamens
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-05-07 19:12:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Jonathan Kamens 2000-08-20 18:42:09 UTC
If you shut down and restart the samba servers, three log files will be
created in /var/log/samba: log.smb, smb.log, and log.nmb.

The first one is created because smbd logs to log.smb before reading the
smb.conf file and realizing that it's actually supposed to be logging to
"%m.log".

The second one is a correctly named log file created because of the "log
file = /var/log/samba/%m.log" entry in smb.conf.

The third one is the default log file name for nmbd, and it is problematic
because the pattern in /etc/logrotate.d/samba won't match it so it will
never be rotated.

I assume that the switch from log.smb to smb.log was made because logrotate
goes haywire because of the "/var/log/samba/log.*" pattern matching, trying
to rotate all of the previously rotated log files.  The correct fix for
that problem is probably to fix logrotate, not to screw up samba's log
files and leave things messed up as they are now.

The minimal fix to this problem is to change /etc/logrotate.d/samba so that
it reads "/var/log/samba/*.log /var/log/samba/log.smb
/var/log/samba/log.nmb" instead of just "/var/log/samba/*.log".

Yuck.

Comment 1 Henri Schlereth 2001-01-21 14:39:01 UTC
Still exists. Not a show stopper for Depends moving ticket to Beta 2 (Florence)

Comment 2 Bill Nottingham 2001-02-15 20:44:26 UTC

*** This bug has been marked as a duplicate of 27835 ***

Comment 3 Bill Nottingham 2001-02-16 17:37:17 UTC
*** Bug 27835 has been marked as a duplicate of this bug. ***

Comment 4 Trond Eivind Glomsrxd 2001-06-22 00:15:31 UTC

*** This bug has been marked as a duplicate of 18455 ***


Note You need to log in before you can comment on or make changes to this bug.