log files never rotated

Jeremy C. Reed reed at wcug.wwu.edu
Tue Feb 27 18:36:56 GMT 2001


My /var/log/smb and /var/log/nmb files are never rotated.

When searching (altavista, google usenet, smb.conf manual, samba faq), I
found a reference about how the log rotation check is only done once every
hundred loggings and if your samba is rarely used it won't rotate, but the
logs will still grow.

I am using samba from a Debian package 2.0.7-3.

My config (/etc/samba/smb.conf) has:
   max log size = 100
(This was changed a couple weeks ago, previously it was set to 1000.)

reed at pilchuck:~$ ls -l /var/log/{smb,nmb}*
-rw-r--r--    1 root     root     18604205 Feb 15 17:40 /var/log/nmb
-rw-r--r--    1 root     root        44150 Feb 26 13:21 /var/log/smb

smb isn't ready to rotate but nmb is growing too large for me.

Should I start using an external log rotation utility?
Or what is the correct samba way to do it?

Thanks,

  Jeremy C. Reed
....................................................
     BSD software, documentation, resources, news...
     http://bsd.reedmedia.net/





More information about the samba mailing list