Cron jobs running as something other than root

Bob McGowen x4312 dept208 bob at wyse.wyse.com
Sat Sep 8 09:42:22 AEST 1990


In article <1990Sep5.200114.1711 at rosewall.citib> mjohn at king.UUCP (Michael Johnston) writes:
>In article <1054 at dekalb.UUCP> douglas at dekalb.UUCP (Douglas B. Jones) writes:
>>In article <26d9499b.2715 at petunia.CalPoly.EDU> gmartin at polyslo.CalPoly.EDU (Hackman) writes:
>>>	Is there any way to make a job that runs from cron run under a 
>>>        different login id???

----deleted material re. how to set up----

>the 'crontab' command. Just create a crontab file for the USER you wish
>to run cron jobs for. Then su to the username you wish to install it for
>and say "crontab < your_cron_file". That's all folks.
				     ^^^^^^^^^^^^^^^^

On my AT&T SysV/386 system there are also two files in /usr/lib/cron which
must be worked with in order to let others use the cron utility:

	cron.allow	Contains names of the users allowed to use cron.
			One name per line

	cron.deny	Contains names of user who may not use cron.  All
			others may.  If this file is empty then ALL users
			have access to cron.  Format is one user name to
			a line.  This file is only used if cron.allow is
			not present, ie. if both are there only cron.allow
			applies.

	neither file	Only root can use cron.

These files control who can use the crontab command and are documented in
the man page for it.

>--
>Michael R. Johnston, Mgr.           Internet: mjohn at citib.com
>USCPG , Treasury Systems            UUCP: uunet!uupsi!bank!mjohn
>Citicorp, NA                        (718) 248-5373


Bob McGowan  (standard disclaimer, these are my own ...)
Product Support, Wyse Technology, San Jose, CA
..!uunet!wyse!bob
bob at wyse.com



More information about the Comp.unix.internals mailing list