Bug#284788: [Logcheck-devel] Bug#284788: logcheck: Installs cron.d file before creating user causing cron to complain

maks attems debian at sternwelten.at
Fri Dec 10 09:59:24 UTC 2004


On Wed, 08 Dec 2004, Jefferson Cowart wrote:

> 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
 
indeed that's bad timing.
i could only reproduce it with a SIGSTOP in the "Setting up logcheck".

what's your box? (cat /proc/cpuinfo) 
was it under heavy io while installing logcheck?

thanks for giving as more clues.
 
--
maks






More information about the Logcheck-devel mailing list