Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Kevin Lim on September 05, 2000, 11:47:32 PM
-
i am getting an email to my root account from the cron daemon:
From: Cron Daemon
To: root@foo.com
Subject: Cron run-parts /etc/cron.daily
Body:
error: bad line 20 in state file /var/lib/logrotate.status
line 20 from /var/lib/logrotate.status is:
/var/log/samba/log.dave leonard 2000-8-19
i looked through the files and found what looks like a logged event, a windoze user through samba tried to access an ibay they dont have access to.
the users (pc) name contains a space, ie dave leonard
can this cause a problem?
i am not sure what is wrong with line 20, can i just delete it? will this problem return if this user tries to access an ibay again?
i looked in /var/log and have two similar files,
log.yvonne\ mapp
log.dave\ leonard
the first one has some entries like i would expect, times and comments etc
the second one is empty, seems to be 0 bytes
thank you.
-
I believe you have correctly diagnosed your problem as the windoze machines with a space in their computer name.
I have encountered the same problem... but I don't know how to make it go away... even after changing the machine names an deleting the offending file. Like Jason, it just keeps coming back.
Hasan
-
Here's the fix:
Notice the line number
error: bad line 19 in state file /var/lib/logrotate.status
Edit /var/lib/logrotate.status
- go to that line number
- Note the name of the Windows machine listed on that line (the name will include an embedded space--which is the source of the problem).
Go to the /var/log/samba directory and remove the file associated with that machine name (and remove the files for any other Windows machines with an embedded space in the name).
Remove the /var/lib/logrotate.status file.
Go to every Windows machine whose name includes an embedded space:
- rename the machine (Control Panel/Network/Identification/Computer Name)
- reboot the computer
That should fix the problem.
Hasan