How to disable or reset security settings in Jenkins

0 votes
I have forgot the credentials to log in into Jenkins. Is there some way through which I can log in into Jenkins as an admin or by creating other user?
Jun 18, 2019 in Jenkins by Neel
• 3,020 points

retagged Jun 19, 2019 by Kalgi 13,240 views

2 answers to this question.

0 votes
Go to config.xml file in var/lib/jenkins. In this file you will find a tag called <useSecurity>. You can change it to false from true to disable the login while using Jenkins. Now restart jenkins and now you will be able to create a new user using new credentials.
answered Jun 18, 2019 by Arvind
• 3,040 points
0 votes

One other way would be to manually edit the configuration file for your user (e.g. /var/lib/jenkins/users/username/config.xml) and update the contents of passwordHash:

<passwordHash>#jbcrypt:$2a$10$razd3L1aXndFfBNHO95aj.IVrFydsxkcQCcLmujmFQzll3hcUrY7S</passwordHash>

Once you have done this, just restart Jenkins and log in using this password: test

Hope this helps!

answered Aug 2, 2019 by Sirajul
• 59,170 points

Related Questions In Jenkins

0 votes
1 answer

How to reset Jenkins security settings?

Hi@akhtar, You can change the security of your ...READ MORE

answered Oct 25, 2020 in Jenkins by MD
• 95,360 points
549 views
0 votes
1 answer

How to reset build number in jenkins?

Hi@akhtar, You can do this task with the ...READ MORE

answered Oct 25, 2020 in Jenkins by MD
• 95,360 points
2,516 views
0 votes
2 answers
+5 votes
3 answers

How to trigger a Jenkins pipeline A in another Jenkins pipeline B?

You can run the following code, its ...READ MORE

answered Jul 5, 2018 in Jenkins by Sophie may
• 10,590 points
81,558 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
1,672 views
+2 votes
1 answer
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 59,170 points
47,456 views
0 votes
2 answers

how to manually install plugins in Jenkins?

You can download the plugin (*.hpi file) ...READ MORE

answered Aug 1, 2019 in Jenkins by Sirajul
• 59,170 points
3,780 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP