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?

Thanks.
Feb 27, 2019 in DevOps & Agile by Damon Salvatore
• 5,980 points
17,347 views

1 answer to this question.

+1 vote

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 :
jenkins ALL=(ALL) NOPASSWD: ALL

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, 2019 by shubham
• 7,340 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 17, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
1,532 views
0 votes
1 answer

what is api token in jenkins and how to use for github webhook

Hi@Anil, GitHub webhook is used to trigger jenkins ...READ MORE

answered May 27, 2020 in DevOps & Agile by MD
• 95,460 points
2,213 views
0 votes
2 answers

How to configure Maven in Jenkins?

HI... How to configure Maven in Jenkins- I HOPE ...READ MORE

answered Jul 14, 2020 in DevOps & Agile by anonymous

edited Jul 15, 2020 by Sirajul 52,527 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 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
• 7,340 points
1,889 views
+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,220 points
5,433 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP