From owner-freebsd-doc@FreeBSD.ORG Thu Jul 3 19:49:26 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFC8737B401 for ; Thu, 3 Jul 2003 19:49:26 -0700 (PDT) Received: from regina.plastikos.com (216-107-106-250.wan.networktel.net [216.107.106.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1911044020 for ; Thu, 3 Jul 2003 19:49:26 -0700 (PDT) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-156-172-39.jan.bellsouth.net [66.156.172.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by regina.plastikos.com (Postfix) with ESMTP id A103E6EEB9; Thu, 3 Jul 2003 22:49:24 -0400 (EDT) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 51E7320F8D; Thu, 3 Jul 2003 21:49:17 -0500 (CDT) Date: Thu, 3 Jul 2003 21:49:17 -0500 From: "Matthew D. Fuller" To: Rich Morin Message-ID: <20030704024916.GD55494@over-yonder.net> References: <20030703211227.GA22445@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i-fullermd.1 X-Editor: vi X-OS: FreeBSD cc: freebsd-doc@freebsd.org Subject: Re: format of /etc/crontab? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 02:49:27 -0000 On Thu, Jul 03, 2003 at 02:31:45PM -0700 I heard the voice of Rich Morin, and lo! it spake thus: > > OK; I'd suggest the following change to crontab(5): > > The ``sixth'' field (the rest of the line) specifies the command to be ... > --- > In the case of /etc/crontab, another field (username) follows the time > and date fields. This is normally set to root, but other names can be > specified; the command will be setuid(2) to the corresponding uid. > > The ``final'' field (the rest of the line) specifies the command to be ... Slightly fiddled with the wording, but you mean something like: Index: crontab.5 =================================================================== RCS file: /usr/cvs/src/usr.sbin/cron/crontab/crontab.5,v retrieving revision 1.22 diff -u -r1.22 crontab.5 --- crontab.5 27 Dec 2002 12:15:36 -0000 1.22 +++ crontab.5 4 Jul 2003 02:47:43 -0000 @@ -166,7 +166,13 @@ day or month (case doesn't matter). Ranges or lists of names are not allowed. .Pp -The ``sixth'' field (the rest of the line) specifies the command to be +In the case of the system crontab +.Pa ( /etc/crontab ) , +another field (``username'') follows the time and date fields. +This field sets the username of the account under which the command is +run. +.Pp +The final field (the rest of the line) specifies the command to be run. The entire command portion of the line, up to a newline or % character, will be executed by ? -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet"