Your message dated Mon, 30 May 2011 23:02:32 +0000
with message-id <[email protected]>
and subject line Bug#625495: fixed in cron 3.0pl1-117
has caused the Debian Bug report #625495,
regarding cron: Cron does not recover well from a BAD INODE INFO error
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
625495: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625495
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cron
Version: 3.0pl1-116
Severity: normal
Hi,
When cron finds a crontab file has the wrong permissions
(and perhaps the wrong owner, I didn't check) it refuses
to execute the cronjobs in that file until the file
is deleted and re-created. It is not enough to
correct the problem and touch the file.
This makes diagnosing and fixing the problem more difficult.
The following script demonstrates the problem:
-----------------<snip>---------------
# Tidy up before we start.
rm -f /etc/cron.d/foo /tmp/foo
sleep 60
# Establish crontab
cat - >/etc/cron.d/foo <<EOF
* * * * * root printf 'Running\n'
EOF
sleep 60
# Cron job runs (email delivered to root)
chmod g+w /etc/cron.d/foo
sleep 60
# Cron job runs
# No error in syslog
cat - >/etc/cron.d/foo <<EOF
#* * * * * root printf 'Running\n'
EOF
sleep 60
# Get error in syslog looking like
#/usr/sbin/cron[1764]: (*system*foo) WRONG INODE INFO (/etc/cron.d/foo)
cat - >/etc/cron.d/foo <<EOF
* * * * * root printf 'Running\n'
EOF
sleep 60
# Cron job does not run.
chmod g-w /etc/cron.d/foo
touch /etc/cron.d/foo
sleep 60
# Cron job still does not run.
-----------------<snip>---------------
-- Package-specific info:
--- EDITOR:
--- usr/bin/editor:
/bin/nano
--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 30248 Dec 18 17:46 /usr/bin/crontab
--- /var/spool/cron
drwxr-xr-x 5 root root 4096 Mar 8 2005 /var/spool/cron
--- /var/spool/cron/crontabs
drwx-wx--T 2 root crontab 4096 Jan 27 16:10 /var/spool/cron/crontabs
-- System Information:
Debian Release: 6.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cron depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii debianutils 3.4 Miscellaneous utilities specific t
ii dpkg 1.15.8.10 Debian package management system
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libpam-runtime 1.1.1-6.1 Runtime support for the PAM librar
ii libpam0g 1.1.1-6.1 Pluggable Authentication Modules l
ii libselinux1 2.0.96-1 SELinux runtime shared libraries
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
Versions of packages cron recommends:
ii lockfile-progs 0.1.15 Programs for locking and unlocking
ii postfix [mail-transport-agent 2.7.1-1 High-performance mail transport ag
Versions of packages cron suggests:
ii anacron 2.3-14 cron-like program that doesn't go
pn checksecurity <none> (no description available)
ii logrotate 3.7.8-6 Log rotation utility
Versions of packages cron is related to:
pn libnss-ldap <none> (no description available)
pn libnss-ldapd <none> (no description available)
pn libpam-ldap <none> (no description available)
pn libpam-mount <none> (no description available)
pn nis <none> (no description available)
pn nscd <none> (no description available)
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: cron
Source-Version: 3.0pl1-117
We believe that the bug you reported is fixed in the latest version of
cron, which is due to be installed in the Debian FTP archive:
cron_3.0pl1-117.diff.gz
to main/c/cron/cron_3.0pl1-117.diff.gz
cron_3.0pl1-117.dsc
to main/c/cron/cron_3.0pl1-117.dsc
cron_3.0pl1-117_i386.deb
to main/c/cron/cron_3.0pl1-117_i386.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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christian Kastner <[email protected]> (supplier of updated cron 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 08 May 2011 01:21:15 +0200
Source: cron
Binary: cron
Architecture: source i386
Version: 3.0pl1-117
Distribution: unstable
Urgency: low
Maintainer: Javier Fernandez-Sanguino Pen~a <[email protected]>
Changed-By: Christian Kastner <[email protected]>
Description:
cron - process scheduling daemon
Closes: 478967 537073 578856 579640 609780 615855 622645 625491 625493 625495
627859
Changes:
cron (3.0pl1-117) unstable; urgency=low
.
* Makefile:
- Fixed integration of cron-internal debug code into the package building
process. Instead of having to modify debian/rules, this can now driven by
DEB_BUILD_OPTIONS=debug
- Removed hard-coded compiler flags, honoring those provided by
dpkg-buildflags instead
* do_command.c:
- When logging the end of cron jobs, log the PID of the actually exec'ed
user command, not the PID of the parent. Closes: #609780
* database.c:
- Split crontab security checks (type, owner, mode, links) into separate
tests with individual error messages instead of the cryptic message
"WRONG INODE INFO". Closes: #625493
- Extended the ability to recover from broken symlinks (added in -110) to
also recover from failed security checks above. Fixes to these were not
being detected as cron only looks at mtime. Closes: #625495
- Also recover from syntax errors. Fixes to these did change mtime, but
were ignored as cron permanently removes broken crontabs from its
database of files to check. Closes: #627859
* cron.8:
- Documented the fact that /etc/crontab and files in /etc/cron.d must not
be group- or other-writable. Closes: #625491, LP: #741979
* crontab.5:
- Specify parse order of crontabs (thanks, Jonathan Amery). Closes: #622645
* debian/control:
- Bumped Standards-Version to 3.9.2 (no changes needed)
- Added missing Build-Depends on libaudit-dev
- Removed Conflicts for nonexistent package suidmanager
- Removed Conflicts for lockfile-progs (which should have been a Breaks
anyway) as we no longer rely on it, we use flock from util-linux instead
- Changed architecture-specific Build-Depends on libselinux1-dev to
linux-any instead of negating all other OSes
* debian/cron.default:
- Merged the LSBNAMES option with EXTRA_OPTS. Both where used to pass
options to the daemon, making one of them redundant
- Added the ability to disable the daily lost+found check by setting the
new variable CHECK_LOSTFOUND to "no". Closes: #579640
* debian/cron.init:
- Don't call start-stop-daemon directly, use LSB init functions instead.
Among other things, this works around the cron daemon not deleting its
pidfile from /var/run/. Closes: #615855
- Added $network to Should-Start
* debian/rules:
- Converted to dh syntax. This included replacing some manually executed
steps with debhelper file-automated ones (eg: cron.man, cron.examples)
to lessen clutter
- Completely rewrote the PAM/SELinux/audit integration parts. PAM support
was being skipped on kfreebsd and hurd, and audit support was completely
broken. From now on:
+ PAM is enabled by default on all platforms
+ SELinux is enabled by default on linux-any
+ audit is disabled by default on all platforms
All of these can be driven by DEB_BUILD_OPTIONS (see debian/rules)
- Do not compress example perl scripts
* debian/{prerm,postrm,postinst}:
- Let dh_installinit manage stopping/(re)starting of jobs instead of
calling invoke-rc.d ourselves
* debian/standard.daily:
- Backup of /etc/{passd,group} is no longer performed by cron; the task
was handed over to src:shadow (see #554170). In Squeeze, this task will
be performed redundantly by both packages (as discussed on
debian-release)
- Rewrite locking and lost+found-checking code, based on a submission to
the BTS by Justin B. Rye. Closes: #478967, #537073, LP: #257367
- Parse /etc/mtab instead of /proc/mounts; the former makes handling bind
mounts easier. Closes: #578856
- Pull in /etc/cron/default for CHECK_LOSTFOUND (see above)
* debian/copyright:
- Convert to DEP5 format (r173)
* debian/watch:
- Added watch file to silence a lintian warning, even though the last
upstream release was in 2004
* Packaging (general): removed a lot of cruft which seems to have accumulated
over time. This included all the cron-se stuff, which appears to have been
a remnant from the SELinux integration process, and was either not being
used anymore or completely broken. Also, the patches/ directory was
removed, as that location has a specific meaning and the patches in there
were no longer relevant.
Checksums-Sha1:
b05295fceecdd9702c66dfb3b561c0f0bb1481f9 1219 cron_3.0pl1-117.dsc
1d69b6cd9eb94bd0201f70700892028676a7e874 88976 cron_3.0pl1-117.diff.gz
43c7665efa16c0eb55401cb6145026f56bae31a9 95814 cron_3.0pl1-117_i386.deb
Checksums-Sha256:
6719500e6714d797b21bc1dccc44d03332a909f4a76832515e6c0b3856dc4927 1219
cron_3.0pl1-117.dsc
1705799cac874cfa171064d8a9764140fcf3618c8f004e01f5eeda5dd47898e7 88976
cron_3.0pl1-117.diff.gz
28d7f2917dc40e211b269e41d7f9e0661c9a1167a6297a49db780d21c1e73fbb 95814
cron_3.0pl1-117_i386.deb
Files:
ce23eb8cacdfbeefdd79f77bbb87fbcb 1219 admin important cron_3.0pl1-117.dsc
757abb9a1f1c65da068d2e1cb945996b 88976 admin important cron_3.0pl1-117.diff.gz
a4c1e1d0ecfbd1253f4e7cb59bec6a2a 95814 admin important cron_3.0pl1-117_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iD8DBQFN5BSOsandgtyBSwkRAj03AJ4pRKEmbLXXN2LLWI/DxGtDAqdKTwCeM3jL
l8/VkIFBH9WaJWiSZrQDr4k=
=DDkG
-----END PGP SIGNATURE-----
--- End Message ---