Jefferson Cowart
2004-Dec-08 19:32 UTC
[Logcheck-devel] Bug#284788: logcheck: Installs cron.d file before creating user causing cron to complain
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:
maks attems
2004-Dec-10 09:59 UTC
Bug#284788: [Logcheck-devel] Bug#284788: logcheck: Installs cron.d file before creating user causing cron to complain
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/logcheckindeed 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
Todd Troxell
2004-Dec-28 08:42 UTC
Bug#284788: [Logcheck-devel] Bug#284788: logcheck: Installs cron.d file before creating user causing cron to complain
On Wed, Dec 08, 2004 at 11:32:49AM -0800, 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.Thanks for the report. The cron jobs are now commented by default, and postinst enables them. This should solve your problem. The fix is in CVS. Cheers, -- [ Todd J. Troxell ,''`. Student, Debian GNU/Linux Developer, SysAdmin, Geek : :' : http://debian.org || http://rapidpacket.com/~xtat `. `' `- ] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20041228/1fbb259d/attachment.pgp
Debian Bug Tracking System
2005-Jan-08 10:33 UTC
[Logcheck-devel] Bug#284788: marked as done (logcheck: Installs cron.d file before creating user causing cron to complain)
Your message dated Sat, 08 Jan 2005 05:17:05 -0500 with message-id <E1CnDeb-0004JA-00 at newraff.debian.org> and subject line Bug#284788: fixed in logcheck 1.2.33 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 8 Dec 2004 19:33:21 +0000>From jeff at cowart.net Wed Dec 08 11:33:21 2004Return-path: <jeff at cowart.net> Received: from exchange1.campus.pomona.edu (mail.pomona.edu) [134.173.71.128] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1Cc7Yv-00051b-00; Wed, 08 Dec 2004 11:33:21 -0800 Received: from jcc02003-nc8.stu.pomona.edu ([134.173.91.151]) by mail.pomona.edu with Microsoft SMTPSVC(6.0.3790.211); Wed, 8 Dec 2004 11:32:56 -0800 Received: by jcc02003-nc8.stu.pomona.edu (Postfix, from userid 1000) id 64305F42A; Wed, 8 Dec 2004 11:32:50 -0800 (PST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jefferson Cowart <jeff at cowart.net> To: Debian Bug Tracking System <submit at bugs.debian.org> Subject: logcheck: Installs cron.d file before creating user causing cron to complain X-Mailer: reportbug 3.2 Date: Wed, 08 Dec 2004 11:32:49 -0800 Message-Id: <20041208193250.64305F42A at jcc02003-nc8.stu.pomona.edu> X-OriginalArrivalTime: 08 Dec 2004 19:32:56.0346 (UTC) FILETIME=[B7CAAFA0:01C4DD5C] Delivered-To: submit at bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: 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: --------------------------------------- Received: (at 284788-close) by bugs.debian.org; 8 Jan 2005 10:21:41 +0000>From katie at ftp-master.debian.org Sat Jan 08 02:21:41 2005Return-path: <katie at ftp-master.debian.org> Received: from newraff.debian.org [208.185.25.31] (mail) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1CnDj3-0000PF-00; Sat, 08 Jan 2005 02:21:41 -0800 Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian)) id 1CnDeb-0004JA-00; Sat, 08 Jan 2005 05:17:05 -0500 From: Todd Troxell <ttroxell at debian.org> To: 284788-close at bugs.debian.org X-Katie: $Revision: 1.54 $ Subject: Bug#284788: fixed in logcheck 1.2.33 Message-Id: <E1CnDeb-0004JA-00 at newraff.debian.org> Sender: Archive Administrator <katie at ftp-master.debian.org> Date: Sat, 08 Jan 2005 05:17:05 -0500 Delivered-To: 284788-close at bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-Spam-Level: X-CrossAssassin-Score: 2 Source: logcheck Source-Version: 1.2.33 We believe that the bug you reported is fixed in the latest version of logcheck, which is due to be installed in the Debian FTP archive: logcheck-database_1.2.33_all.deb to pool/main/l/logcheck/logcheck-database_1.2.33_all.deb logcheck_1.2.33.dsc to pool/main/l/logcheck/logcheck_1.2.33.dsc logcheck_1.2.33.tar.gz to pool/main/l/logcheck/logcheck_1.2.33.tar.gz logcheck_1.2.33_all.deb to pool/main/l/logcheck/logcheck_1.2.33_all.deb logtail_1.2.33_all.deb to pool/main/l/logcheck/logtail_1.2.33_all.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 284788 at bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Todd Troxell <ttroxell at debian.org> (supplier of updated logcheck package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster at debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Saturday, 08 Jan 2005 04:56:00 -0500 Source: logcheck Binary: logcheck logtail logcheck-database Architecture: source all Version: 1.2.33 Distribution: unstable Urgency: low Maintainer: Debian logcheck Team <logcheck-devel at lists.alioth.debian.org> Changed-By: Todd Troxell <ttroxell at debian.org> Description: logcheck - Mails anomalies in the system logfiles to the administrator logcheck-database - A database of system log rules for the use of log checkers logtail - Print log file lines that have not been read Closes: 284505 284788 284825 285602 286230 286306 286329 286532 286747 287184 287237 288580 289246 Changes: logcheck (1.2.33) unstable; urgency=low . maks: * Enhance rules at level workstation for removable devices. (closes: #284505, #284825) * Fix dnsmasq rule regarding DHCPINFORM. (closes: #286532) * Add rbldnsd rules at level server from Rafael Jesus Alcantara Perez <rafa at dedaloingenieros.com>. (closes: #285602) * Add jabberd rules from Peter Palfrader <weasel at debian.org>. * Add rule for weekly nmbd logrotate. (closes: #286329) * Add rules from Lee Maguire <lee-debian at hexkey.co.uk> for usb headset on level workstation. (closes: #286747) * Fix dovecot rules: dots in usernames + other breakage. (closes: #286306) * Fix gconfd rules for latest default english logging style. * Logtail need to depend on versioned perl not logcheck. (closes: #288580) * Add rules for dictd, francine, kernel from alfie. * Fix dhcp rules for vlan case. (closes: #289246) todd: * Set rule directories setgid to simplify administration. (closes: #286230) * Add future package plans to TODO * Remove dh_strip and dh_shlibdeps from debian/rules * Touch cron.d/logcheck in postinst. (closes: #284788) * Conditionally set permissions in postinst on version <1.2.33 (closes: #287184) * Update dh_installlogcheck, which has already been patched in debhelper. (closes: #287237) Files: df0734db2689120d6190ce5ea8622f4b 703 admin optional logcheck_1.2.33.dsc 540f44fc39be17a3357671c4deef86c5 89502 admin optional logcheck_1.2.33.tar.gz e138301e6f638aeca6a05405429b95e4 42368 admin optional logcheck_1.2.33_all.deb d9e9073c85c61d442719988440d04f5f 57492 admin optional logcheck-database_1.2.33_all.deb 6b983373c4044d602a25dd8ccc5b21ed 25368 admin optional logtail_1.2.33_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFB369S4u3oQ3FHP2YRAgssAKCh0ofP6ZCATqcFdqBMzwTH7MQhjgCg0VdW a1cPOUVFxEp9IN83KE8mGr4=5YoU -----END PGP SIGNATURE-----