Xref: utzoo comp.unix.questions:31382 comp.unix.wizards:25640 comp.unix.internals:2803 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!sdd.hp.com!mips!news.cs.indiana.edu!att!att!cbnewsl!urban From: urban@cbnewsl.att.com (john.urban) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.internals Subject: Re: starting a process as another user during startup Message-ID: <1991May16.153115.23782@cbnewsl.att.com> Date: 16 May 91 15:31:15 GMT References: <8646@alpha.cam.nist.gov> Distribution: usa Organization: AT&T Bell Laboratories Lines: 18 In article <8646@alpha.cam.nist.gov> coleman@cam.nist.gov (Sean Sheridan Coleman X5672) writes: > DELETED STUFF > >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? > > Try: su nbsnet -c "This command to run" Since you're running as root, the su(1) command will not prompt you for the password. Sincerely, John Ben Urban