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 but if /etc/cron.d/ contains
a symlink to a file with group write permissions the cron
jobs in that file are run.  After the content of the file
is changed cron will then refuse to run the jobs.

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 - >/tmp/foo <<EOF
* * * * * root printf 'Running\n'
EOF
chmod g=w /tmp/foo

ln -s  /tmp/foo /etc/cron.d/

# Permissions are:
## ls -lh /tmp/foo
#-rw-r--r-- 1 root root 34 May  3 10:56 /tmp/foo

sleep 60

# Cron job runs (email delivered to root)

cat - >/tmp/foo <<EOF
#* * * * * root printf 'Running\n'
EOF

sleep 60

# Cron job does not run

cat - >/tmp/foo <<EOF
* * * * * root printf 'Running\n'
EOF

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



-- 
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