Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site convex Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!convex!berliner From: berliner@convex.UUCP Newsgroups: net.bugs.4bsd Subject: Re: su in crontab (the answer) Message-ID: <33500010@convex> Date: Thu, 16-Jan-86 11:36:00 EST Article-I.D.: convex.33500010 Posted: Thu Jan 16 11:36:00 1986 Date-Received: Tue, 21-Jan-86 06:56:49 EST References: <707@astrovax.UUCP> Lines: 18 Nf-ID: #R:astrovax.UUCP:707:convex:33500010:000:757 Nf-From: convex.UUCP!berliner Jan 16 10:36:00 1986 > /* Written 12:59 pm Jan 13, 1986 by wls@astrovax.UUCP in net.bugs.4bsd */ > Of course it would be even better if there was a way in which one could tell > cron directly under what uid an entry is to be run. The System V cron and > the Version 8 cron (I think) already can do this. If I remember correctly, the 4.3 BSD version of cron added a field which would specify the user that the command would be run as. For example: 00 05 * * * root find /usr/preserve -mtime +7 -a -exec rm -f {} \; 30 * * * * adm /usr/adm/accounting > /dev/console These crontab lines would execute the find as root and the accounting as adm (no flames, please -- these are for examples only). Brian Berliner CONVEX Computer Corporation {ihnp4,uiucdcs}!convex!berliner