I am getting the following error email every week. It appears to be a problem with either cron, logrotate, or denyhosts. I'm not sure which.
Subject: Cron <root@vps> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/logrotate:
test: 91: /etc/hosts.deny: unexpected operator
Any suggestions?
Best Answer
Yes, but it has this:
and that script does stuff like
assuming the script is correct, if I had to guess I'd say your HOSTS_DENY line in your config file is malformed somehow.
Fortunately, we don't have to guess, this command will show you exactly where the error is coming from: