[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Cron question



On Tue, Mar 07, 2000 at 09:40:49PM +0100, manitu wrote:
: Hello all,
: 
: does a program that gets executed by the cron always get root-rights
: (effective user id = root) ?

from man 5 crontab 

  A crontab file contains instructions to the cron(8) daemon
       of the general form: ``run this command at  this  time  on
       this  date''.   Each  user has their own crontab, and com<AD>
       mands in any given crontab will be executed  as  the  user
       who  owns  the  crontab.   Uucp and News will usually have
       their own crontabs, eliminating the  need  for  explicitly
       running su(1) as part of a cron command.

[ snip ]

   The format of a cron command is very much the V7 standard,
       with  a number of upward-compatible extensions.  Each line
       has five time and date fields, followed by a user name  if
       this  is  the  system crontab file, followed by a command.

So yes, you can replace run it as a different user from /etc/crontab

or any user can create a crontab entry by typeing

crontab -e

-- 
Mat Kovach                                      mkovach@xxxxxxxxxxxxxxxxx
Cleveland Linux User Group                       http://cleveland.lug.net