starting a process as another user during startup

Tom Armistead toma at swsrv1.cirr.com
Fri May 17 11:20:23 AEST 1991


In article <8646 at alpha.cam.nist.gov> coleman at cam.nist.gov (Sean Sheridan Coleman X5672) writes:
>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

Put 'su nbset -c command' in you startup script...

Tom
-- 
Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx  75040
===========================================================================
toma at swsrv1.cirr.com                {egsner,letni,ozdaltx,void}!swsrv1!toma



More information about the Comp.unix.wizards mailing list