Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba log file question 1

Status
Not open for further replies.
Apr 11, 2002
144
US
I have a problem with a samba server that continually recreates a log.old file, appending all that users daily logs into it. The file can get rather large. How does a <user>.log.old file get created? I see nothing in smb.conf.

thanks
Gryph
 
Check /etc/syslog.conf

---------------------------------------
If someone's post was helpful to you, please click the box &quot;Click here to mark this post as a helpful or expert post&quot;.
 
Samba automatically creates the .old file when your logfile get larger than the default log file size or larger than the 'max log size' parameter if this is set in smb.conf. The default logfile size is 5MB, but you can change this in your smb.conf. As far as I know, the .old file is only created when the regular log file exceeds the maximum size, and I believe that it is overwritten each time so it should never exceed 5MB.

If the logfile gets large quickly, check to see that the 'debug level' is zero (this is the default, so this is the value if it isn't in your smb.conf file). Also, you can make samba log only to syslog by setting

syslog only = Yes

in your smb.conf.

jaa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top