Xref: utzoo comp.unix.questions:31406 comp.unix.wizards:25651 comp.unix.internals:2819 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!mips!swrinde!cs.utexas.edu!sun-barr!newstop!central!vector!egsner!swsrv1!toma From: toma@swsrv1.cirr.com (Tom Armistead) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.internals Subject: Re: starting a process as another user during startup Message-ID: <1991May17.012023.17180@swsrv1.cirr.com> Date: 17 May 91 01:20:23 GMT References: <8646@alpha.cam.nist.gov> Organization: Software Services: Garland, Tx Lines: 31 In article <8646@alpha.cam.nist.gov> coleman@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@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@swsrv1.cirr.com {egsner,letni,ozdaltx,void}!swsrv1!toma