Xref: utzoo comp.unix.questions:31564 comp.unix.wizards:25727 comp.unix.internals:2908 Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.internals Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!rochester!kodak!uupsi!jpradley!jpr From: jpr@jpradley.jpr.com (Jean-Pierre Radley) Subject: Re: starting a process as another user during startup Organization: /usr/lib/news/organisation Date: Thu, 23 May 1991 04:27:26 GMT Message-ID: <1991May23.042726.22122@jpradley.jpr.com> References: <8646@alpha.cam.nist.gov> 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? su nbsnet -c "your_script and arguments thereto" Jean-Pierre Radley Unix in NYC jpr@jpr.com jpradley!jpr CIS: 72160,1341