Date: Fri, 27 Jun 2003 16:37:40 +0100 (BST) From: Jan Grant <Jan.Grant@bristol.ac.uk> To: "Timms, Simon" <STimms@petro-canada.ca> Cc: freebsd-questions@freebsd.org Subject: Re: crontab root not found Message-ID: <Pine.GSO.4.44.0306271635480.21189-100000@mail.ilrt.bris.ac.uk> In-Reply-To: <BB28669D4974D311B4A00008C75D1CF90F54C0D5@pcaxs02.pcacorp.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 27 Jun 2003, Timms, Simon wrote: > Hi, > I seem to be having some trouble with cron. I edited my crontab file and > added a line then ran > > #crontab /etc/crontab > > Now my email box is full of "cron root not found". Nonsense, I said, I am > root and I'm right here, I then tried waving my hands so the computer could > find me more easily. Then it occurred to me that perhaps the contab file > was being interpreted as a normal user crontab file and it was trying to run > the command "root" as that is what appeared in the 6th column. So I went > and read the crontab man page and found that I should run crontab with the > -u option when using su. I tried that too and I'm still getting the e-mails > every 5 minutes. So what command should I run to load the master crontab? > I tried > > #crontab -u root crontab > > but that too seems to interpret the crontab as a user crontab too. I have > removed any changes I made to the crontab so I won't bother including it in > the e-mail since it is the default file. /etc/crontab is not in the same format as a user's personal crontab file (even root's). You don't need to reinstall /etc/crontab, because cron will pick this up automatically. If you try, you'll find it misinterpreting the sixth column (as is happening). Either: just edit /etc/crontab, or: add a root crontab entry using crontab -e. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ "Impact of vulnerability: Run code of an attacker's choice Maximum Severity Rating: Moderate" -- M$ security bulletin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0306271635480.21189-100000>