当前位置:网站首页>What if Jenkins forgot his password

What if Jenkins forgot his password

2022-04-23 21:00:00 Top of the program

stay Jenkins Under the installation directory of :
D:\Program Files (x86)\Jenkins\users\admin_1387157761052349764
There are two subfolders :
 Insert picture description here
When entering admin below , You can see a configuration file config.xml:
Open the configuration file and you can see

    <hudson.security.HudsonPrivateSecurityRealm_-Details>
      <passwordHash>#jbcrypt:$2a$10$K5xEiZy8f7ffvf4MxLFsn.jHBJj24IBT/KpJNsL/4u8QS2HqLWKZu</passwordHash>
    </hudson.security.HudsonPrivateSecurityRealm_-Details>

Replace the fields in the ciphertext with #jbcrypt:$2a 10 10 10MiIVR0rr/UhQBqT.bBq0QehTiQVqgNpUGyWW2nJObaVAM/2xSQdSq

So you can get admin The initial password for is 123456 了

You can refer to
https://www.cnblogs.com/youcong/p/10503074.html

https://www.cnblogs.com/huangenai/p/7416322.html

版权声明
本文为[Top of the program]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/111/202204210545091249.html