Package: cron
Version: 3.0pl1-116
Severity: normal

Hi,

Files in /etc/cron.d that have group write permissions will
not have their cronjobs run.  I configured /etc/rsyslog.conf
with the line:

cron.notice                     /var/log/cron.log

and the log message that indicates there is a problem did
not get logged.  This means to me that the message is
being logged at the INFO priority.

I believe that log messages which indicate that cron jobs
are not running should be logged at WARN or above.  This
would make it a lot simpler to seprate out the cronjob start/stop
messages from more serious problems.

(Note: I did not test the message that results
when a file is not owned by root which reports
WRONG FILE OWNER.  It may also be reported at too low
a priority.)

The following script generates the log message:
------------------<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
chmod g+w /etc/cron.d/foo

sleep 60

# Cron job does not run.
# Get error in syslog looking like
#/usr/sbin/cron[1764]: (*system*foo) WRONG INODE INFO (/etc/cron.d/foo)
------------------<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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to