Jenkins password

0 votes

I’m getting this error when I try to login into Jenkins. I don’t remember the password and I cant find it anywhere either.

sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
Build step 'Execute shell' marked build as failure

Any help would be appreciated. Thank you.

Aug 9, 2018 in Jenkins by lina
• 8,220 points
1,155 views

1 answer to this question.

0 votes
Try this:

-stop jenkins

- go and edit /var/lib/jenkins/config.xml

- Change <useSecurity>true</useSecurity> to false

- Restart Jenkins: sudo service jenkins restart

- Navigate to the Jenkins dashboard to the "Configure Security" option you likely used before. This time, setup security the same as before, BUT set it to allow anyone to do anything, and allow user signup.

- Go to www.yoursite.com/securityRealm/addUser and create a user

- Then go change allow anyone to do anything to whatever you actually want users to be able to do. In my case, it is allow logged in users to do anything.
answered Aug 9, 2018 by Kalgi
• 52,350 points

Related Questions In Jenkins

0 votes
1 answer

How to change admin password in jenkins?

Hi@akhtar, To change your admin password, you have to ...READ MORE

answered May 9, 2020 in Jenkins by MD
• 95,460 points
11,249 views
+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 7,060 points
4,773 views
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,300 points
1,882 views
0 votes
1 answer
+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,062 views
+2 votes
1 answer
0 votes
5 answers

What is the default Jenkins password?

Change the shell to /bin/bash instead of bin/false ...READ MORE

answered Apr 23, 2019 in Jenkins by Vinod
45,701 views
+5 votes
5 answers

Jenkins properties file

Follow these steps: 1. Install ‘EnvInject’ plug-in in the Jenkins ...READ MORE

answered Aug 2, 2018 in Jenkins by lina
• 8,220 points
28,381 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