From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079072815881.tru64-unix-managers.marc@archive.invalid> From: "Mike R. Smith \(864\) 282-9235" Date: Fri, 03 Sep 1999 17:49:57 +0000 To: tru64-unix-managers Subject: How to run a job as another user X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079072815881 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.