logrotate cron job fails for denyhosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
denyhosts (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: denyhosts
The logrotate cron job for denyhosts fails:
You have new mail in /var/mail/
mikelifeguard@
Mail version 8.1.2 01/15/2001. Type ? for help.
"/var/mail/
>N 1 root@mikelifeguar Sun Nov 29 06:41 22/999 Cron <root@binnie> test -x
& 1
Message 1:
From root@ Sun Nov 29 06:41:51 2009
Envelope-to: root@
Delivery-date: Sun, 29 Nov 2009 06:41:51 -0400
From: root@ (Cron Daemon)
To: root@
Subject: Cron <root@binnie> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Content-Type: text/plain; charset=
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
Date: Sun, 29 Nov 2009 06:41:51 -0400
/etc/cron.
test: 91: /etc/hosts.deny: unexpected operator
There is some discussion at http://
ProblemType: Bug
Architecture: i386
Date: Sun Nov 29 14:02:05 2009
DistroRelease: Ubuntu 9.10
Package: denyhosts 2.6-5
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: denyhosts
Uname: Linux 2.6.31-
It still fails with the most recent version, though with different errors now:
/etc/cron. daily/logrotate : conf: 28: SECURE_LOG: not found conf: 36: HOSTS_DENY: not found conf: 60: PURGE_DENY: not found conf: 95: BLOCK_SERVICE: not found conf: 110: DENY_THRESHOLD_ INVALID: not found conf: 121: DENY_THRESHOLD_ VALID: not found conf: 131: DENY_THRESHOLD_ ROOT: not found conf: 142: DENY_THRESHOLD_ RESTRICTED: not found conf: 155: WORK_DIR: not found conf: 200: LOCK_FILE: not found conf: 221: ADMIN_EMAIL: not found conf: 232: SMTP_HOST: not found conf: 233: SMTP_PORT: not found conf: 252: Syntax error: newline unexpected daily/logrotate exited with return code 1
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
/etc/denyhosts.
error: error running non-shared postrotate script for /var/log/denyhosts of '/var/log/denyhosts '
run-parts: /etc/cron.
The problem is that /etc/logrotate. d/denyhosts sources /etc/denyhosts.conf which is *not* a valid shell script, because there are space around equal signs of the configuration settings, e.g.:
SECURE_LOG = /var/log/auth.log