starting a process as another user during startup

Sean Sheridan Coleman X5672 coleman at cam.nist.gov
Wed May 15 17:07:31 AEST 1991


I have a shell script currently that cron runs as a user
called nbsnet which starts up a monitoring program and is 
left to run throughout the day. At the end of the day, this 
user's cron will kill the process and do some work with the
data it received. 

I take the machine down once a month for backups, etc but
this process is never restarted ( I have reset it in cron now)

What I would like to do is have the rc.local run this script
and start up this monitoring program as a part of its startup 
but I want it to start the process so the user is nbsnet not
root. Is there a way to do this and if so, how?


Your assistance is appreciated. Without the net, my job would
be twice as hard.

coleman at bldrdoc.gov
Sean Coleman
NIST
Boulder, CO



More information about the Comp.unix.internals mailing list