format of /etc/crontab?

Matthew D. Fuller fullermd at over-yonder.net
Fri Jul 4 02:49:27 UTC 2003


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 at 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"



More information about the freebsd-doc mailing list