From owner-freebsd-hackers Sun Jan 3 16:22:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA29034 for freebsd-hackers-outgoing; Sun, 3 Jan 1999 16:22:15 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (castles317.castles.com [208.214.167.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA29025 for ; Sun, 3 Jan 1999 16:22:13 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id QAA08388; Sun, 3 Jan 1999 16:18:53 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199901040018.QAA08388@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: "Stephen J. Roznowski" cc: mike@smith.net.au, hackers@FreeBSD.ORG Subject: Re: Why is root's crontab different? In-reply-to: Your message of "Sun, 03 Jan 1999 18:15:54 EST." <199901032315.SAA04839@istari.home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 03 Jan 1999 16:18:53 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > From: Mike Smith > > > > > > From: "Brian W. Buchanan" > > > > > > > > On Sun, 3 Jan 1999, Stephen J. Roznowski wrote: > > > > > In tracking down the cause of my "/var/log/maillog.0: No such file > > > > > or directory" errors from newsyslog, I "discovered" that I had both > > > > > a root crontab entry and /etc/crontab. Both of these were running > > > > > newsyslog at the same time and they were conflicting with each > > > > > other. > > > > > > > > > > My question is why is root's crontab entry treated differently (i.e. > > > > > a file in /etc) as opposed to just having a crontab (in /var/cron/tabs)? > > > > > > > > /etc/crontab allows you to specify the user who commands should be run as > > > > > > I understand the difference, but why would this be better than installing > > > crontabs for the various (system) users? (for example, news). > > > > Because /etc/crontab is controlled by the adminstrator, while the > > user's contab is controlled by the user. > > [Not trying to be argumentative here....] > > In the case of root, what is the difference? [Or any of the "system users", > like news, etc...] They grow out of generalising fundamentally different approaches. The per-user crontab is a mechanism whereby any user can arrange to have cron run jobs for them. The system crontab in /etc is a mechanism whereby the administrator can arrange to have jobs run as any user. The overlap creates a little duplication of functionality, but it's by no means a conflict. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message