[Logcheck-devel] Bug#515156: logcheck: fails to run after upgrade from etch to lenny
Evgeni Golov
sargentd at die-welt.net
Sat Feb 14 00:58:24 UTC 2009
Package: logcheck
Version: 1.2.69
Severity: grave
Justification: renders package unusable
Hi,
I've just upgraded a box from Etch to Lenny and my logcheck broke.
I'm getting mails like this from cron:
From: logcheck system account <logcheck at foo.example.com>
Warning: If you are seeing this message, your log files may not have been
checked!
Details:
Failed to get lockfile: /var/lock/logcheck/logcheck.lock
So I started investigating...
/var/lock/logcheck is owned by root:root and is drwxr-xr-x, so the logcheck
user can't write in there.
logcheck.postinst contains this:
# Set Permissions on install, not upgrade
if [ ! -n "$2" ]; then
...
# just in case
chown logcheck /var/lock/logcheck > /dev/null || true
fi
So we chown the dir to logcheck only on fresh installs, just in case, huh?
/var/lock/logcheck is in the package, thus dpkg is smart and sets it to
root:root again on upgrade. Et voila, we can't lock anymore.
IMHO the permission setting should not be conditional here.
Regards
Evgeni
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-x31-1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages logcheck depends on:
ii adduser 3.110 add and remove users and groups
ii bsd-mailx [mailx] 8.1.2-0.20081101cvs-2 A simple mail user agent
ii cron 3.0pl1-105 management of regular background p
pn lockfile-progs <none> (no description available)
pn logtail <none> (no description available)
ii mailx 1:20081101-2 Transitional package for mailx ren
ii masqmail [mail-tra 0.2.21-4 A mailer for hosts without permane
ii sysklogd [system-l 1.5-5 System Logging Daemon
Versions of packages logcheck recommends:
pn logcheck-database <none> (no description available)
Versions of packages logcheck suggests:
pn syslog-summary <none> (no description available)
More information about the Logcheck-devel
mailing list