From: "Mike R. Smith \(864\) 282-9235" <SMITHMR () Bowater ! com>
To: tru64-unix-managers
Subject: How to run a job as another user
Date: Fri, 03 Sep 1999 17:49:57 +0000 [thread overview]
Message-ID: <96079072815881.tru64-unix-managers.marc@archive.invalid> (raw)
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.
reply other threads:[~1999-09-03 17:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox