[Gllug] Advanced versions of cron for scheduling

Robert Newson ran at bullet3.fsnet.co.uk
Sat Jul 16 08:36:18 UTC 2005


Minty wrote:

...
>>A shell script, while true; do ... done, solves this, but there are
>>maintainability concerns (eg for one, how to start the script when the
>>machine boots, from a non-root user account, without requiring root
>>access?).
> 
> apache can be started in this manner, using a non root account.... ?
> dunno how...

During boot, Apache is actually started as root, but immediately drops its 
privs.

All you need is a program to drop privs (from root to required group/user) 
which then exec(2)s the required program/script to actually run.  (Just like 
cron, login, su, etc do?)  Then put this priv dropper into the boot sequence 
where you want the program to start.

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list