Hello, Maybe the problem is that the ability to launch a process with a different user is disabled by default. However, you may change PROCESSAUTHMODE variable in your STAF.cfg configuration file to enable it. From the user's guide SET PROCESSAUTHMODE <value>:
<< * DISABLED - This indicates that the user may not specify a username/password with which to authenticate when starting a process. This mode is available on all platforms. This is default mode. * WINDOWS - This indicates that windows-based authentication should be used. This mode is only available on Windows systems. See "Starting a Process Under a Different User on Windows" for more information. * NONE - This indicates that usernames will be honored but not authenticated. In this mode, passwords are ignored and processes are started under the indicated username. This mode is only available on Unix systems. >> Best regards, Javier 2008/9/28 Sandy Young <[EMAIL PROTECTED]>: > 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/staf-users@lists.sourceforge.net/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 > staf-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/staf-users > > ------------------------------------------------------------------------- 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 staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users