Pierre Belanger
2002-Sep-25 19:33 UTC
[Samba] 2.2.6pre2 (and previous?) "tiny bug" with "log file" attribute
Hi, I never thought I would need to change the default log file path, but I had and found a bug. When changing my default "log file" from /usr/local/samba/var/log.%m to /usr/local/samba/var/log/log.%m there are always files created in the "default compiled" log directory /usr/local/samba/var when nmbd and smbd start. The following ls are right after doing a "stop" and "start": # ls -l /usr/local/samba/var drwxr-xr-x 2 root root 512 Sep 25 15:23 locks drwx------ 2 root root 512 Sep 25 15:21 log -rw-r--r-- 1 root other 478 Sep 25 15:23 log.nmbd -rw-r--r-- 1 root root 140 Sep 25 15:23 log.smbd # ls -l /usr/local/samba/var/log -rw-r--r-- 1 root root 80 Sep 25 15:11 log.nmbd -rw-r--r-- 1 root root 0 Sep 25 15:11 log.smbd Timestamp of files in /usr/local/samba/var are more recent cuz "nmbd/smbd" didn't write _yet_ in the other files located in /usr/local/samba/var/log . Pierre B.
Jelmer Vernooij
2002-Sep-25 19:45 UTC
[Samba] 2.2.6pre2 (and previous?) "tiny bug" with "log file" attribute
On Wed, Sep 25, 2002 at 03:32:09PM -0400, Pierre Belanger wrote about '[Samba] 2.2.6pre2 (and previous?) "tiny bug" with "log file" attribute':> I never thought I would need to change the default log > file path, but I had and found a bug.> When changing my default "log file" from> /usr/local/samba/var/log.%m> to> /usr/local/samba/var/log/log.%m> there are always files created in the "default compiled" > log directory /usr/local/samba/var when nmbd and smbd > start.Could you post the contents of these files? Jelmer
Andrew Bartlett
2002-Sep-25 21:33 UTC
[Samba] 2.2.6pre2 (and previous?) "tiny bug" with "log file" attribute
Pierre Belanger wrote:> > Hi, > > I never thought I would need to change the default log > file path, but I had and found a bug. > > When changing my default "log file" from > > /usr/local/samba/var/log.%m > > to > > /usr/local/samba/var/log/log.%m > > there are always files created in the "default compiled" > log directory /usr/local/samba/var when nmbd and smbd > start.Yes - we need to start logging before we have parsed the configuration file. There is a lot that can go wrong before we get there, and the admin needs to have some chance of finding it. There is a command line optin if you would prefer, and that is parsed very early. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
Gerald Carter
2002-Sep-30 13:49 UTC
[Samba] 2.2.6pre2 (and previous?) "tiny bug" with "log file" attribute
On Wed, 25 Sep 2002, Pierre Belanger wrote:> Hi, > > I never thought I would need to change the default log > file path, but I had and found a bug. > > When changing my default "log file" from > > /usr/local/samba/var/log.%m > > to > > /usr/local/samba/var/log/log.%m > > there are always files created in the "default compiled" > log directory /usr/local/samba/var when nmbd and smbd > start.This has to be the case for log messages written before the log file parameter is parsed. If you want top override from the start, use the -l command line parameter. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sams Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--