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 in DevOps & Agile by Damon Salvatore
• 5,510 points
42 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 by shubham
• 6,890 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,510 points
97 views
+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,280 points

edited Oct 16, 2018 by Kalgi 625 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 http://169.254.169.254/metadata/v1/id within the ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by Atul
• 10,240 points
233 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,380 points
147 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,890 points
76 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,110 points
692 views