Jenkins Reset User Password | Jenkins Log In Issues
After installing Jenkins and logging in again, does it ask you for a User Name and Password when you are trying to open the dashboard? I will cover a quick tutorial on Jenkins Reset User Password which will basically take care of your Jenkins Log in issues.
Jenkins Reset User Password Steps
Well here is a simple trick to enter the security credentials.
Step 1: Type ‘admin’ in User textbox.
Step 2: Now navigate to the Secrets folder in your .jenkins folder. There look for a file called initialAdminPassword.
Step 3: Open it in Notepad to be able to read it. Just double click the file and select Notepad and click on Ok:
Step 4: The file must have a password. Just copy it.
Step 5: Paste the password in the password textbox. Then click on Continue to proceed:
That might take you to the Jenkins Dashboard.
Changing the Password of admin
You can then change the password of your Jenkins account so that you don’t have to repeat all of the above-mentioned steps again.
Step 6: To do that just click on People option located in the left-hand sidebar.
Step 7: Then click on Admin user ID to open it. You can click on the admin link under the Name column as well, it will take you to a commonplace.
Step 8: Click on Configure option located on the left-hand sidebar.
It will open you a page like with the admin user info.
Step 9: Just scroll down a bit and you will find the password textboxes.
Step 10: Change the password as per your wish. Also, enter it in the confirm password box. Then click on Save button at the bottom:
To confirm if the password has indeed changed you can click on the logout option towards the top right-hand corner:
and then login again using the password you had entered:
Did that work for you? If not you could this another trick a shot too.
Step 1: Close all Jenkins related services and look for a file called config.xml. It might be located in your .jenkins folder.
Step 2: Right click on it and open it with your text editor. (Notepad or Notepad++) or any.
Step 3: Look for the tag that says:
I have marked it in the image above.
Step 4: Replace that “true” with “false”. Make sure you don’t touch anything else.
Step 5: Save the file and close it.
Step 6: Try opening the service again by typing:
in the browser of your choice.
Jenkins Reset User Password issue must get resolved by now.
If not then please state your problem in the comments section below.
Check out other cool tips and tricks from our website.