From: David B. <bd...@us...> - 2008-09-29 13:32:13
|
Do you have the following line in the STAF.cfg file on the system where you are trying to start the process: SET PROCESSAUTHMODE none The following command will tell you whether the Process Auth Mode is None on the system: STAF local PROCESS LIST SETTINGS Note that you must set the PROCESSAUTHMODE to None on Unix machines to run a process as another user. Note that this indicates that usernames will be honored but not authenticated. In this mode, passwords are ignored and processes are started under the indicated username. You can also set the PROCESSAUTHMODE dynamically via a PROCESS SET request. For example: STAF local PROCESS SET PPROCESSAUTHMODE None Also, note that on Unix, STAFProc must be started as root in order to have the necessary permissions to run a process as another user. David Bender STAF/STAX Development 8-1268 (512-838-1268) IBM Austin Bldg. 903-5B002 Internet: bd...@us... "Sandy Young" <ho...@gm...> 09/28/2008 04:23 AM To sta...@li... cc Subject [staf-users] start procee with different user on RH4 server Hi, guys: I want to use process service to start a shell command with another user rather than current user,. Follow <STAF V3 User's Guide>, I think that such a command may do that: staf local process start shell command whoami username yl password 123456 wait returnstdout returnstderr But it failed when execute this command. Below is error message: Error during process authentication for user name yl Somebody could tell me why? I also get an infomation from http://www.mail-archive.com/sta...@li.../msg00219.html that even this command executes succcessed, all enviroment variables associated with the new user will not be loaded automatically. But my shell command depends on enviroment variables such as PATH and other. Is there any way to make staf load enviroment variables automatically? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ staf-users mailing list sta...@li... https://lists.sourceforge.net/lists/listinfo/staf-users |