User account considered for execution

28 views
Skip to first unread message

Raghava Rudrakanth P V

unread,
Aug 7, 2013, 12:32:39 AM8/7/13
to jenkins...@googlegroups.com
Hi Team,
I am new user of Jenkins and have a question.

1. I created job which executes the shell script.
2. Configured users using Jenkins own database and was able to login to Jenkins and execute the job.

Now when the shell execution is happening which User is considered for execution?
        - Is this going to be login user? if yes do this user credentials should match the credentials of the enterprise user.?
        - Is this going to be the user who installed Jenkins? or by default will it be administrator.

Thanks in advance for help.

Thanks,
Rudra

bala nageswar Chadalavada

unread,
Aug 7, 2013, 12:43:13 AM8/7/13
to jenkins...@googlegroups.com, pottur...@gmail.com
login user
 
no need to match with enterprise user



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Bala.ch

Richard Bywater

unread,
Aug 7, 2013, 12:46:00 AM8/7/13
to jenkins...@googlegroups.com
If you are referring to which user will the shell execution happen under, it will be the user which Jenkins is running as.

Richard.



--

Raghava Rudrakanth P V

unread,
Aug 7, 2013, 12:58:37 AM8/7/13
to jenkins...@googlegroups.com
Hi Richard,
Thanks for reply, I am bit confused again.
- Consider I Logged-In to Jenkins with User account "Test1" (this account is not existed on network).
- When job is called, batch script will create folders & remove. But "Test1" doesn't have permissions (this user itself not existed on the system).
Will this be successful execution if yes considering which user Jenkins created the folders?

I tried this on windows, but who ever user logged in the create and deletion of folders is successful.
---------------------------------
Started by user test user
Building in workspace C:\Program Files (x86)\Jenkins_1\jobs\TestCallByTestUser\workspace
[workspace] $ cmd /c call C:\Windows\TEMP\hudson7256762012989360322.bat

C:\Program Files (x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>echo "Test Call from Jenkins" 
"Test Call from Jenkins"

C:\Program Files (x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>echo user executing -  
user executing - 

C:\Program Files (x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>mkdir c:\JenkinsCreatedFolder 

C:\Program Files (x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>rmdir c:\JenkinsCreatedFolder1 

C:\Program Files (x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>exit 0 
Finished: SUCCESS

---------------------------------

Thanks,
Rudra



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/tqc-8EytDmc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Daniel Beck

unread,
Aug 7, 2013, 3:17:20 AM8/7/13
to jenkins...@googlegroups.com
You configured authentication to the Jenkins UI. It has nothing to do with the user account jobs are run as, which is the same account who is running Jenkins' java process.

If you installed it as a service on Windows and didn't change it in Computer Management, Jenkins is running as SYSTEM.

As to access permissions for the files created by Jenkins -- it's basic Windows NTFS permissions.

Raghava Rudrakanth P V

unread,
Aug 7, 2013, 3:29:19 AM8/7/13
to jenkins...@googlegroups.com
Thanks Daniel,
Got the point now.

Thanks,
Rudra

Raghava Rudrakanth P V

unread,
Aug 7, 2013, 3:57:34 AM8/7/13
to jenkins...@googlegroups.com
Hi Daniel,
Really appreciate the quick response.
Just to get some more clarification regarding this, This is for Linux environment. (Didn't have enough resources to test)
- The Jenkins server is started on Linux by User "XYZ".
- But repository is located on shared drive (\\sharedhost\sharedRepository) and not on linux file system.
My understanding is, User "XYZ" should have permission to shared drive (\\sharedhost\sharedRepository) to checkout code and create builds.

Correct me if I am wrong.

Thanks,
Rudra
Reply all
Reply to author
Forward
0 new messages