Date: Thu, 3 Jul 2003 21:49:17 -0500 From: "Matthew D. Fuller" <fullermd@over-yonder.net> To: Rich Morin <rdm@cfcl.com> Cc: freebsd-doc@freebsd.org Subject: Re: format of /etc/crontab? Message-ID: <20030704024916.GD55494@over-yonder.net> In-Reply-To: <p05200f45bb2a4d497067@[192.168.254.205]> References: <p05200f42bb2a44de7749@[192.168.254.205]> <20030703211227.GA22445@Odin.AC.HMC.Edu> <p05200f45bb2a4d497067@[192.168.254.205]>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030704024916.GD55494>