From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d28dbfca9b988d0d X-Google-Attributes: gid1164f8,public From: Rolf Hauck Subject: Re: Run a process with a different ID Date: 1998/12/17 Message-ID: <3678D571.4B10B5AA@datenrevision.de>#1/1 X-Deja-AN: 423229773 Cache-Post-Path: ns.work.de!news@internetserver.datenrevision.de Content-Transfer-Encoding: 7bit References: <758gh6$fob$1@nnrp1.dejanews.com> To: wcoltters@yahoo.com Content-Type: text/plain; charset=us-ascii Organization: datenrevision GmbH X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Mime-Version: 1.0 Newsgroups: comp.sys.dec you could try the following as root: echo "yourCommandLine" | su - DesiredUser Hth Rolf wcoltters@yahoo.com schrieb: > > Hi, > > My problem is that I want to run a process > in my alpha with an ID different from root > (I'm root). But I don't know how to do that. > I know how to do that in VMS but in DGUX > I can't find the answer yet. > I saw a not very elegant way used by Oracle. > They have an script in > /sbin/init.d/oracle > that executes (with root permission) every > time the machine boots. In this script > there is a line that runs the same script > with oracle ID in this way: > # rsh -l oracle7 /sbin/init.d/oracle > So, the script is run like oracle7 and not > like root. They use the utility provided > with tcp/ip. But what if I'm in state 2 so > I don't have or I don't want the tcp/ip > connectivity???? :-) > My question is: Is there any other > way to do this? How? > > Any help would be very appreciated. > > Thanks in advance. > > Wilson G. Coltters > wcoltters@yahoo.com > > -----------== Posted via Deja News, The Discussion Network ==---------- > http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own