Wednesday 21 June 2017

Resetting Jenkins admin password

We can change the password with following command.

echo -n 'admin{bar}' | sha256sum

in this foo is the password and salt is bar we will get password like belwo

8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 -

just take a copy and go to /var/lib/jenkins/users/admin/config.xml

and paste the password in <passwordHash> like

<passwordHash>bar:
8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918</passwordHash>


Now restart the jenkins service.

service jenkins restart

now login.


No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...