Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!emcard!dekalb!douglas From: douglas@dekalb.UUCP (Douglas B. Jones) Newsgroups: comp.unix.wizards Subject: Re: Cron jobs running as something other than root Keywords: Cron Message-ID: <1054@dekalb.UUCP> Date: 4 Sep 90 19:34:25 GMT References: <26d9499b.2715@petunia.CalPoly.EDU> Reply-To: douglas@dekalb.UUCP (Douglas B. Jones) Organization: DeKalb College, Clarkston GA Lines: 34 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??? > -Guy Martin > Kennedy Library Computer Services > Cal Poly, San Luis Obispo, CA >Guy Martin (Hackman) // Internet: gmartin@polyslo.calpoly.edu >--------------------- // Fubarnet: guy@fubarsys.slo.ca.us >Amiga, the tool for the \\ // Work: guy@library.calpoly.edu >creative mind---------> \X/ UUCP: ucbvax!voder!polyslo!gmartin In our /etc/crontab there are entries that are run for uucp. Here are some examples: 30 * * * * su uucpa < /usr/var/uucp/uucp.hour 0 6 * * * su uucpa < /usr/var/uucp/uucp.day 0 12 * * * su uucpa < /usr/var/uucp/uucp.noon 0 3 1 * * su uucpa < /usr/var/uucp/uucp.week 0 2 * * * su uucpa < /usr/var/uucp/uucp.night #30 2 1 * * su uucp < /usr/var/uucp/uucp.longhall "uucpa" is an admin. id for uucp. hope this helps, Douglas -- Doulas B. Jones douglas@dekalb Academic Computer Center or gatech!dekalb!douglas DeKalb College 555 N. Indian Creek Drive/Clarkston, Ga. 30021 (404) 299-4233