Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Run a process with a different ID
@ 1998-12-16  5:00 wcoltters
  1998-12-17  5:00 ` Rolf Hauck
  0 siblings, 1 reply; 2+ messages in thread
From: wcoltters @ 1998-12-16  5:00 UTC (permalink / raw)


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    



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Run a process with a different ID
  1998-12-16  5:00 Run a process with a different ID wcoltters
@ 1998-12-17  5:00 ` Rolf Hauck
  0 siblings, 0 replies; 2+ messages in thread
From: Rolf Hauck @ 1998-12-17  5:00 UTC (permalink / raw)
  To: wcoltters

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-12-17  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-16  5:00 Run a process with a different ID wcoltters
1998-12-17  5:00 ` Rolf Hauck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox