crontab root not found
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. Thank you kindly, Simon This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and if you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited. If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately. We honour similar requests relating to the privacy of email communications. Cette communication par courrier électronique est une communication privée à l'usage exclusif du destinataire principal ainsi que des personnes dont les noms figurent en copie. Les renseignements contenus dans ce courriel sont confidentiels et si vous n'êtes pas le destinataire prévu, vous êtes avisé, par les présentes que toute reproduction, tout transfert ou toute autre forme de diffusion de cette communication par quelque moyen que ce soit est interdit. Si vous n'êtes pas spécifiquement autorisé à recevoir ce courriel ou si vous croyez l'avoir reçu par erreur, veuillez en aviser l'expéditeur original immédiatement. Nous respectons les demandes similaires qui touchent la confidentialité des communications par courrier électronique. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: crontab root not found
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 I'd say you should post the new line you added to cron. Sounds like you have the formatting incorrectlying, and it is trying to run a bogus command called either 'cron' or 'root'. -- Jonathan Arnold (mailto:[EMAIL PROTECTED]) Daemon Dancing in the Dark, a FreeBSD blog: http://freebsd.amazingdev.com/blog ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: crontab root not found
Sure thing, here is the file. But the line I added (right at the bottom) is commented out. BTW I am running 5.1 release. I also get operator not found when it tries to run the second entry. # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # #minute hourmdaymonth wdaywho command # */5 * * * * root/usr/libexec/atrun # # Save some entropy so that /dev/random can re-seed on boot. */11* * * * operator /usr/libexec/save-entropy # # Rotate log files every hour, if necessary. 0 * * * * rootnewsyslog # # Perform daily/weekly/monthly maintenance. 1 3 * * * rootperiodic daily 15 4 * * 6 rootperiodic weekly 30 5 1 * * rootperiodic monthly # # Adjust the time zone if the CMOS clock keeps local time, as opposed to # UTC time. See adjkerntz(8) for details. 1,310-5 * * * rootadjkerntz -a # Run portupgrade #* 2 * * * root /usr/local/scripts/cron.portupgrade -Original Message- From: Jonathan Arnold [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:18 AM To: Timms, Simon Cc: [EMAIL PROTECTED] Subject: Re: crontab root not found 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 I'd say you should post the new line you added to cron. Sounds like you have the formatting incorrectlying, and it is trying to run a bogus command called either 'cron' or 'root'. -- Jonathan Arnold (mailto:[EMAIL PROTECTED]) Daemon Dancing in the Dark, a FreeBSD blog: http://freebsd.amazingdev.com/blog This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and if you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited. If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately. We honour similar requests relating to the privacy of email communications. Cette communication par courrier électronique est une communication privée à l'usage exclusif du destinataire principal ainsi que des personnes dont les noms figurent en copie. Les renseignements contenus dans ce courriel sont confidentiels et si vous n'êtes pas le destinataire prévu, vous êtes avisé, par les présentes que toute reproduction, tout transfert ou toute autre forme de diffusion de cette communication par quelque moyen que ce soit est interdit. Si vous n'êtes pas spécifiquement autorisé à recevoir ce courriel ou si vous croyez l'avoir reçu par erreur, veuillez en aviser l'expéditeur original immédiatement. Nous respectons les demandes similaires qui touchent la confidentialité des communications par courrier électronique. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: crontab root not found
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[FAQ pointer] crontab root not found
Timms, Simon [EMAIL PROTECTED] writes: I seem to be having some trouble with cron. I edited my crontab file and added a line then ran #crontab /etc/crontab Don't do that, then. Or, in the wording of the FreeBSD FAQ, Why do I keep getting messages like ``root: not found'' after editing my crontab file?http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#ROOT-NOT-FOUND-CRON-ERRORS ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]