You are not logged in.

#1 2007-05-12 15:20:45

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Samba log files

I just discovered that I have about a million (7567 to be precise) samba log files with ridiculous names like:

log.nmbd.old.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.3.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1

some shorter, some longer. Most of them are empty.

1. My gut feeling tells me that there is something wrong here, with my Samba configuration. Is it?
2. Is there any reason not to delete them (except the most recent ones)?

Offline

#2 2007-05-12 18:23:09

russ816
Member
Registered: 2006-06-09
Posts: 18

Re: Samba log files

I noticed that on some of my servers recently too. I just deleted them all. I haven't seen any side effects.

I did notice that there is a setting smb.conf called 'max log size'. I think that might stop it from creating hundreds of log files if you up it to a larger amount.

The other way to fix it is to make the log file non specific by changing

log file = /var/log/samba.log.%m

to

log file = /var/log/samba.log

Offline

#3 2007-05-13 07:52:36

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Samba log files

Thanks. I hadn't noticed that log setting in the cfg file. Will try.

Offline

Board footer

Powered by FluxBB