Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Run job as different user
Run job as different user [message #1284783] Fri, 04 April 2014 18:02 Go to next message
Paul Wang is currently offline Paul Wang
Messages: 1
Registered: April 2014
Junior Member
I setup Hudson on Windows (server 2008 R2)
Seems the job started by anonymous
***********************
Started by user anonymous
[workspace] $ cmd /c call c:\hudson\tomcat\temp\hudson395374251564020258.bat
***********************

it called my perl script and the script tries to access samba drive.

the problem I have now is the job can't see the samba drive at all.
I think my samba drive doesn't support "anonymous" login.

How can I run the job with another user?
tried to use "runas",
it prints
**************************
Enter the password for fs_reg@AMR:
c:\Regression\bin8>exit 1
Finished: FAILURE
***************************

Any solutions?
Re: Run job as different user [message #1289780 is a reply to message #1284783] Wed, 09 April 2014 12:38 Go to previous message
Winston Prakash is currently offline Winston Prakash
Messages: 386
Registered: August 2011
Location: Fremont, CA USA
Senior Member
I'm not a window expert, but I thought you could do

runas /user:fs_reg@AMR ...


Winston Prakash
Eclipse Hudson team
Previous Topic:Need help configuring Hudson for SSL with Git/Gerrit
Next Topic:Hudson Configuration Changes can't be "Saved"
Goto Forum:
  


Current Time: Wed Jul 23 16:25:54 EDT 2014

Powered by FUDForum. Page generated in 0.01636 seconds