From owner-freebsd-questions Wed Jun 26 14:02:48 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA11776 for questions-outgoing; Wed, 26 Jun 1996 14:02:48 -0700 (PDT) Received: from alpha.dsu.edu (ghelmer@alpha.dsu.edu [138.247.32.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA11760 for ; Wed, 26 Jun 1996 14:02:42 -0700 (PDT) Received: from localhost (ghelmer@localhost) by alpha.dsu.edu (8.7.5/8.7.3) with SMTP id QAA24801; Wed, 26 Jun 1996 16:02:14 -0500 (CDT) Date: Wed, 26 Jun 1996 16:02:14 -0500 (CDT) From: Guy Helmer To: Annelise Anderson cc: freebsd-questions@freebsd.org Subject: Re: Message to Root Every 5 Minutes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 26 Jun 1996, Annelise Anderson wrote: > On Wed, 26 Jun 1996, Scott Blachowicz wrote: > > > Annelise Anderson wrote: > > > > > I'm getting the following message sent every five minutes--it ends > > > up in /var/mail/root: > > > [...] > > > root: not found > > > > > > I must have something set wrong--any ideas? > > > > Looks like you got an entry from /etc/crontab into root's cron file in the > > spool area. The spool area cron files don't have a username as item right > > before the command but /etc/crontab does. You probably want to do a > > 'crontab -e' to edit the spool area cron file to remove the "root"...or > > remove that line altogether since it might already be in /etc/crontab. > > I found /var/cron/tabs/root, which is apparently the "real" file. I > took out a line I'd added, using crontab to edit and reinstall, and > rebooted, but this does not help. This is the only file in that directory. > I can't find any "spool area" cron files. /etc/crontab is not meant to be installed via crontab(1) - it is special in two ways: it is automatically read by cron and it has a different format than individual user crontab files. If you have used crontab(1) to install /etc/crontab as root's crontab, you will get the message you mentioned above each time cron tries to run one of the commands because /etc/crontab is not in the same format as an individual user's crontab (see the man page for crontab(5) for details of the format on an individual user's crontab). So, if you make a change to /etc/crontab, *don't* use crontab(1) to put /etc/crontab into /var/cron/tabs. If you have done this, you can use "crontab -u root -r" to remove the installed copy (/var/cron/tabs/root) of /etc/crontab. It's confusing behavior... Guy Helmer, Dakota State University Computing Services - ghelmer@alpha.dsu.edu