How to give Jenkins super user permission?

0 votes
I am trying to execute some shell script through Jenkins execution shell. When I am building my job, it keeps failing and I am getting permission denied errors.

I need to give Jenkins super user permission. I don't know how to make Jenkins super user.

Can anyone help me with this query?

Feb 27 in DevOps & Agile by Damon Salvatore
• 5,250 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Here is what you can try. Go to sudoers file by typing below command.

$sudo visudo
Now add the below lines in your sudoers file :

While saving the file remember saving it in /etc/sudoers, not in etc/sudoers.tmp.

After that restart your Jenkins server by using below command.

$service jenkins start

Your Jenkins server will face any permission issues now.

I hope it helps.

answered Feb 27 by shubham
• 6,480 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to give a name to an image in Dockerfile ?

This needs to be done in your ...READ MORE

answered Nov 16, 2018 in DevOps & Agile by Damon Salvatore
• 5,250 points
+2 votes
2 answers

how to set different provisioning profiles for different targets using Xcode Build

For multiple targets, each task has to ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by ajs3033
• 7,000 points

edited Oct 16, 2018 by Kalgi 397 views
+5 votes
2 answers

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl within the ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by Atul
• 10,200 points
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to disable linux user authentication on ldap server

You can try the below steps: passwd -l ...READ MORE

answered Apr 27, 2018 in DevOps & Agile by shubham
• 6,480 points
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,100 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.