[Logcheck-devel] Bug#284788: logcheck: Installs cron.d file before creating user causing cron to complain
Jefferson Cowart
jeff at cowart.net
Wed Dec 8 19:32:49 UTC 2004
Package: logcheck
Version: 1.2.31
Severity: important
After installing logcheck on my system last night I did not recieve any
reports. Upon checking the logs I found that the logcheck file had been
copied into /etc/cron.d before adduser had been run. Cron picked up the
new file and then complained that the user was invalid. Relevant log
lines below. I just restarted cron which I believe has fixed the issue.
Perhaps this can be fixed by copying the file in postinst after the user
has been created.
auth.log:Dec 8 03:27:13 JeffDebian2 groupadd[2153]: new group:
name=logcheck, gid=106
auth.log:Dec 8 03:27:13 JeffDebian2 useradd[2154]: new user:
name=logcheck, uid=106, gid=106, home=/var/lib/logcheck,
shell=/bin/false
auth.log:Dec 8 03:27:15 JeffDebian2 gpasswd[2158]: set members of adm
to logcheck
syslog:Dec 8 03:27:01 JeffDebian2 cron[878]: Error: bad username; while
reading /etc/cron.d/logcheck
syslog:Dec 8 03:27:01 JeffDebian2 cron[878]: Error: bad username; while
reading /etc/cron.d/logcheck
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.4.27-1-386
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages logcheck depends on:
ii adduser 3.59 Add and remove users and groups
ii cron 3.0pl1-86 management of regular background p
ii debconf [debconf 1.4.41 Debian configuration management sy
ii debianutils 2.8.4 Miscellaneous utilities specific t
ii lockfile-progs 0.1.10 Programs for locking and unlocking
ii logcheck-databas 1.2.31 A database of system log rules for
ii logtail 1.2.31 Print log file lines that have not
ii mailx 1:8.1.2-0.20040524cvs-1 A simple mail user agent
ii perl 5.8.4-3 Larry Wall's Practical Extraction
ii postfix [mail-tr 2.1.4-5 A high-performance mail transport
ii sysklogd [system 1.4.1-16 System Logging Daemon
-- debconf information:
logcheck/changes:
* logcheck/install-note:
More information about the Logcheck-devel
mailing list