* How to run a job as another user
@ 1999-09-03 17:49 Mike R. Smith (864) 282-9235
0 siblings, 0 replies; only message in thread
From: Mike R. Smith (864) 282-9235 @ 1999-09-03 17:49 UTC (permalink / raw)
To: tru64-unix-managers
I am a vms person pretending to be a unix admin. In vms you can do a
submit/user=username to run a command as someone else.
I have not been able to find this in my unix manuals. Please help me
see where I went wrong.
I was given two commands to run during startup, one from root and one
from user xxxx. I created a file in /sbin/rc3.d called S92httpstart
this file contained basically two lines
/usr/dir/otherdir/scriptname # basically run first script as root
/sbin/rc3.d/stest & # execute the file containing other command in bg
the second one i put in another file called /sbin/rc3.d/stest and it
does the following
su - xxxx # switch to the other user
command -switch # start the webserver processes
exit # exit
I figured root would create a background process, switch users, run the
command and the process would go away. When I checked the webserver
processes were not there. I can do the same thing interactively and it
works. There is probably some command to do this, can someone pass it
on to me.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-09-03 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-03 17:49 How to run a job as another user Mike R. Smith (864) 282-9235
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox