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.
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