Cron questions

john at wvlpdp.uucp john at wvlpdp.uucp
Wed Oct 1 08:52:00 AEST 1986




	What are people's favorite way to have cron to things as certain
	users.
	Does a "best" method exist?

	I have seen things like:
		
30	*	*	*	* /bin/su foo < a/shell.script

	but does this work if user foo has a password?

	One method I have though off is to have cron start a set uid program
	that checks if the user is root or the owner of cron.
	The program then examines the first line of a shell script to obtain
	the user-id to set before fork/exec'ing /bin/sh to run the shell script.
	What, if anything, does this do to security etc.

Sample script:
# uidhere
function of shell script

end script

Polite E-mail responses welcomed.


John A. Ebersold 				World Video Library
ihnp4!convex!ctvax!trsvax!hal6000!wvlpdp!john	2747 Airport Freeway
						Fort Worth, Texas 76111
						(817)-831-3811



More information about the Comp.unix.wizards mailing list