Cron questions

Guy Harris guy at sun.uucp
Sun Oct 5 09:23:59 AEST 1986


> It is much nicer to do it like so:
> 
> 30	*	*	*	* /bin/su person -c "whatever"

This only works if your "su" supports "-c".  I think that was a System III
addition.

> > 
> > 	One method I have thought off is to have cron start a set uid program
> > 	that checks if the user is root or the owner of cron.
> 
> Are you a Berkeley site?  We SVR-er's always have cron running as root.

I don't think he's a Berkeley site; it's difficult to install a UNIX system
on a person :-).  If he's running at a 4.3BSD site (or probably 4.2BSD; the
machine with our 4.2 archival source is being cranky, so I can't check),
"cron" is running as root.  (Sun's version runs "cron" as "root", so it was
probably that way in 4.2BSD also.)  I don't remember what V7 did; it may
very well have run "cron" as "daemon" or something like that.
-- 
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy at sun.com (or guy at sun.arpa)



More information about the Comp.unix.wizards mailing list