[Bug 1821566] Re: cron ignores whole crontab if one line has error

Christian Kastner 1821566 at bugs.launchpad.net
Mon Mar 25 18:10:42 UTC 2019


I'm afraid that this is by design, to prevent a malicious user from
dumping basically anything into one of the crontab directories.

An attacker once compromised a debian.org host by triggering a crafted
core dump in one of the crontab directories, and the daemon kept trying
to execute lines until it hit a valid one.

** Changed in: cron (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/1821566

Title:
  cron ignores whole crontab if one line has error

Status in cron package in Ubuntu:
  Invalid

Bug description:
  Ubuntu 18.04.


  Let's create error entry in /etc/crontab:

  00 09 * * 4 1 root /usr/local/bin/geoiprenew.sh

  restart cron

  systemctl restart cron


  мар 25 10:29:02 ovpn1 cron[12403]: Error: bad username; while reading /etc/crontab
  мар 25 10:29:02 ovpn1 cron[12403]: (*system*) ERROR (Syntax error, this crontab file will be ignored)

  Expected behavoir is only line with error is ignired.

  Thank you!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1821566/+subscriptions



More information about the foundations-bugs mailing list