70 likes | 87 Vues
Sometimes you may need to reset Jenkins user password in Linux. Here are the steps to reset admin password in Jenkins.<br><br>Visit https://fedingo.com/how-to-reset-jenkins-admin-user-password-in-linux/
E N D
Disable Jenkins Security (1 of 2) Log into Jenkins server using root or sudo privileges, and then open Jenkins configuration XML file in a text editor. # sudo vi /var/lib/jenkins/config.xml Search for useSecurity string. For this, press Esc key and enter /useSecurity. You should see the following line. <useSecurity>true</useSecurity>
Disable Jenkins Security (2 of 2) Change it to <useSecurity>false</useSecurity> Save changes and exit vi editor by entering :wq. Restart Jenkins services to apply changes. # sudo systemctl restart jenkins
Reset Jenkins Admin Password (1 of 2) To reset admin password, do the following steps 1. Click on People on the left-hand navigation menu. 2. Click on the Admin. 3. Delete the user account. 4. Navigate to Jenkins / Manage Jenkins.
Reset Jenkins Admin Password (2 of 2) 5. Click Configure Global Security 6. Check Enable Security check box 7. Under Security Realm, select Jenkins’ own user database 8. In the Authorization section, select Logged-in users can do anything. 9. Unselect Allow anonymous read access. 10. Click Save to save your changes.
Create New Jenkins Admin User After this process, you will be taken to page where new Admin user can be created. Fill in new user’s details and click Create First Admin User. You have now created new Admin user with new password.
Thank You Visit for details https://fedingo.com/how-to-reset-jenkins-admin-user-password-in-linux/