[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cron 101: Cron message "/bin/sh: root: command not found"



On Du, 11 mai 14, 12:07:47, Ron Leach wrote:
> 
> /var/spool/cron/crontabs/root indeed contains exactly the error you mention:
> 
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.jE2KHC/crontab installed on Fri Dec 31 08:54:50 2010)
> # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
> # /etc/crontab: system-wide crontab
> # Unlike any other crontab you don't have to run the `crontab'
> # command to install the new version when you edit this file
> # and files in /etc/cron.d. These files also have username fields,
> # that none of the other crontabs do.
> 
> SHELL=/bin/sh
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> 
> # m h dom mon dow user  command
> 17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
> 
> Filip, the comment suggests that I shouldn't edit this file here.

Actually you have no way of knowing this. That part could have just been 
copy-pasted by someone mistaking root's crontab with the system crontab 
(/etc/crontab). The presence of a 'user' field seems to support this.

My suggestion still stands: keep the content of root's crontab somewhere 
(just in case), but remove it.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature


Reply to: