Hallo Hubert,
2.0.7 is supposed to do a better job of controlling the log file size than
previous versions, however there is an issue that in order for the current
log file to be renamed, and a new one started (smb, and smb.old, in your
case) the effective uid for the smbd dameon at the time it checks the log
size and needs to change it must be "0" (root). So if you have heavy
users
doing tasks that write a LOT of debug messages before smbd switches uids
from the user uid back to root for whatever reason, the debug file can grow
larger than the 'max log size' you request in smb.conf.
Anyway - a couple of things to relieve your problem:
1. unless you are trying to debug a problem, you should set the
'log level' in smb.conf to 0. This will keep the size of your
debug file down.
2. I would bring down samba, and remove all the log files in the
var/log subdirectory, and verify that the filesystem that the
directory lives on is not filling up.
3. finally, check the permissions on the /,/var,/var/log subdirectories and
make sure that everyone has 'x' permission at least to traverse the
directories; also make sure that the /var/log
subdirectory is writeable by root; perhaps this was inadvertently changed
recently.
Question,
I note that the date on the var/log/smb file is current - are these
messages actually going to the 'console' or are they being written to
this
file? And you might also want to post your smb.conf file, for us to look at
your parameters regarding the logs, etc.
Hope this helps,
Don
-----Original Message-----
From: palme@uni-wuppertal.de [mailto:palme@uni-wuppertal.de]
Sent: Thursday, December 28, 2000 6:36 AM
To: samba@us5.samba.org
Cc: palme@uni-wuppertal.de
Subject: Checking log size fails
Hi,
please, could someone help me with that message:
Dec 28 11:44:48 wrpc3 smbd[31897]: [2000/12/28 11:44:48, 0]
lib/debug.c:check_log_size(311)
Dec 28 11:44:48 wrpc3 smbd[31897]: check_log_size: open of debug file
/var/log/smb failed - using console.
My log files:
# ll /var/log/smb*
-rw-r--r-- 1 root root 2102310 Dez 28 10:44 /var/log/smb
-rw-r--r-- 1 root root 1024310 Nov 12 18:20 /var/log/smb.old.0
-rw-r--r-- 1 root root 30 Okt 29 06:48
/var/log/smb.old.1.gz
-rw-r--r-- 1 root root 30 Okt 15 06:49
/var/log/smb.old.2.gz
-rw-r--r-- 1 root root 30 Okt 1 06:49
/var/log/smb.old.3.gz
-rw-r--r-- 1 root root 30 Sep 17 06:49
/var/log/smb.old.4.gz
-rw-r--r-- 1 root root 30 Sep 10 06:49
/var/log/smb.old.5.gz
-rw-r--r-- 1 root root 30 Aug 27 06:49
/var/log/smb.old.6.gz
#
I set max log size to 1000!
What's wrong? (Perhaps a bug?)
Using version 2.0.7 (Debian linux 2.2 Potato)
Thanks in advance, and have a happy new year!
--
=====================================================================Hubert
Palme Bergische Universitaet-Gesamthochschule Wuppertal
Computing Center
D-42097 Wuppertal
E-Mail: palme@uni-wuppertal.de (Germany)
http://www.hrz.uni-wuppertal.de/hrz/personen/h_palme.html