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,540 points
569 views

1 answer to this question.

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 :
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
• 6,910 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,540 points
159 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 in DevOps & Agile by MD
• 43,520 points
90 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 in DevOps & Agile by anonymous

edited Jul 15 by Sirajul 82 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
610 views
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,910 points
344 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,200 points
2,316 views