proper use of su

Phil Ngai phil at amdcad.UUCP
Fri Mar 29 03:31:34 AEST 1985


On my 780 running 4.2, I sometimes want cron to execute certain shell
scripts under user ids other than root, such as uucp and news. Sometimes
I can do:

	/bin/su news < shell.script

and sometimes I have to do:

	echo shell.script | /bin/su news

Could someone explain this? thanks


-- 

 Phil Ngai (408) 749-5720
 UUCP: {ucbvax,decwrl,ihnp4,allegra}!amdcad!phil
 ARPA: amdcad!phil at decwrl.ARPA



More information about the Comp.unix mailing list