Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uupsi!citib!king!mjohn From: mjohn@king..citib (Michael Johnston) Newsgroups: comp.unix.wizards Subject: Re: Cron jobs running as something other than root Keywords: Cron Message-ID: <1990Sep5.200114.1711@rosewall.citib> Date: 5 Sep 90 20:01:14 GMT References: <26d9499b.2715@petunia.CalPoly.EDU> <1054@dekalb.UUCP> Sender: news@rosewall.citib Reply-To: mjohn@king.UUCP (Michael Johnston) Organization: US Card Products Group, Citicorp Lines: 22 In article <1054@dekalb.UUCP> douglas@dekalb.UUCP (Douglas B. Jones) writes: >In article <26d9499b.2715@petunia.CalPoly.EDU> gmartin@polyslo.CalPoly.EDU (Hackman) writes: >> Is there any way to make a job that runs from cron run under a >> different login id??? >In our /etc/crontab there are entries that are run for uucp. > >Here are some examples: > >30 * * * * su uucpa < /usr/var/uucp/uucp.hour If you are running BSD or flavors of System V you have available to you 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. -- Michael R. Johnston, Mgr. Internet: mjohn@citib.com USCPG , Treasury Systems UUCP: uunet!uupsi!bank!mjohn Citicorp, NA (718) 248-5373