Hi!
I´m running a Debian 3.1 (Sarge) server box and recently I implemented Logcheck to my system. The problem is that always when logcheck runs I get 2 error-mails. I dont know what to do about this problem.
The content of the first of the two eror mails looks something like this:
if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi
X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/lib/logcheck>
X-Cron-Env: <LOGNAME=logcheck>
sort: misslyckades öppna: /tmp/logcheck.vHYtoc/logoutput/*: Filen eller katalogen finns inte
# means in english: that the mentioned file could not be opened and that the #file does not exist.
And the content of the second of the two error-mails looks something like this:
Warning: If you are seeing this message, your log files may not have been
checked!
Details:
E: File could not be read: /var/log/auth.log
E: File could not be read: /var/log/critical.log
E: File could not be read: /var/log/cron.log
E: File could not be read: /var/log/daemon.log
E: File could not be read: /var/log/emergency.log
E: File could not be read: /var/log/error.log
E: File could not be read: /var/log/info.log
E: File could not be read: /var/log/kern.log
E: File could not be read: /var/log/lpr.log
E: File could not be read: /var/log/mail.log
E: File could not be read: /var/log/user.log
E: File could not be read: /var/log/uucp.log
Check temporary directory: /tmp/logcheck.vHYtoc
#...which as said does not exists!!
declare -x HOME="/var/lib/logcheck"
declare -x LANG="en_GB"
declare -x LANGUAGE="sv_SE:sv:en_GB:en"
declare -x LOGNAME="logcheck"
declare -x MAILTO="root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PWD="/var/lib/logcheck"
declare -x SHELL="/bin/sh"
declare -x SHLVL="2"
And yes it looks like permission problem but i have tried to make the files readable to the adm group like this:
chgrp adm /var/log/auth
and i have also tried to add logcheck to the root group which is the group that the files belongs to from the beginning.
Permissions for the files are: rwxrwx root:root (or root:adm after the attempt above)
And absolutely nothing works
I really do hope someone can help me, because i think logcheck would be very useful if only I could get it to work.
All the best
Tommy