当前位置:网站首页>Jenkins can view the forgotten credential password based on the credential ID and how to reset the admin password
Jenkins can view the forgotten credential password based on the credential ID and how to reset the admin password
2022-06-09 01:25:00 【kainx】
Retrieve voucher password
- open Jenkins The script command line page of the system management page

- Enter the following code in the input box and click Run to view the passwords corresponding to all vouchers
com.cloudbees.plugins.credentials.SystemCredentialsProvider.getInstance().getCredentials().forEach{
it.properties.each {
prop, val ->
println(prop + ' = "' + val + '"')
}
println("-----------------------")
}
Press down ctrl + F Key combination to find vouchers ID The password corresponding to the voucher can be searched
Reset the administrator password to 123456
admin User information is stored in by default /root/.jenkins/users/admin/config.xml In file , Pay attention to your actual path , among passwordHash The content in the middle of the label is admin The encrypted password of the user
<?xml version='1.1' encoding='UTF-8'?>
<user>
<fullName>admin</fullName>
<properties>
<jenkins.security.ApiTokenProperty>
<apiToken>{AQAAABAAAAAwzaSuZnmlQZdTqpGR+OJFsLttgq85/TvpE+HdXnDorJ5CVEyLKBZwWU23KNK1BMbhp5XOOVjn938Z+Xbop3z9Pg==}</apiToken>
</jenkins.security.ApiTokenProperty>
<hudson.model.MyViewsProperty>
<views>
<hudson.model.AllView>
<owner class="hudson.model.MyViewsProperty" reference="../../.."/>
<name>all</name>
<filterExecutors>false</filterExecutors>
<filterQueue>false</filterQueue>
<properties class="hudson.model.View$PropertyList"/>
</hudson.model.AllView>
</views>
</hudson.model.MyViewsProperty>
<hudson.model.PaneStatusProperties>
<collapsed/>
</hudson.model.PaneStatusProperties>
<hudson.search.UserSearchProperty>
<insensitiveSearch>true</insensitiveSearch>
</hudson.search.UserSearchProperty>
<hudson.security.HudsonPrivateSecurityRealm_-Details>
<passwordHash>#jbcrypt:$2a$10$MiIVR0rr/UhQBqT.bBq0QehTiQVqgNpUGyWW2nJObaVAM/2xSQdSq</passwordHash>
</hudson.security.HudsonPrivateSecurityRealm_-Details>
<jenkins.security.LastGrantedAuthoritiesProperty>
<roles>
<string>authenticated</string>
</roles>
<timestamp>1528791323260</timestamp>
</jenkins.security.LastGrantedAuthoritiesProperty>
</properties>
</user>
After copying and backing up the file, you can modify it passwordHash Change the value in the label to #jbcrypt:2a10$MiIVR0rr/UhQBqT.bBq0QehTiQVqgNpUGyWW2nJObaVAM/2xSQdSq
<hudson.security.HudsonPrivateSecurityRealm_-Details>
<passwordHash>#jbcrypt:$2a$10$MiIVR0rr/UhQBqT.bBq0QehTiQVqgNpUGyWW2nJObaVAM/2xSQdSq</passwordHash>
</hudson.security.HudsonPrivateSecurityRealm_-Details>
restart jenkins After use admin To login , password 123456
Reference resources
1. https://blog.csdn.net/u012440725/article/details/124751053
2. https://blog.csdn.net/kai_1215/article/details/80731328
边栏推荐
- Matrix - 2D area and retrieval - matrix immutable, leetcode 304
- Lancher single node deployment and certificate problem -- the way to build a dream
- 汇编语言集成开发环境学习笔记
- [Niuke SQL] non technical quick start
- "Penalty kick" games
- Preparation and drilling of fire emergency plan, safety publicity, training and collection
- Shell 硬件信息
- shell 显示系统信息菜单
- Is it appropriate for a 27 - year-old girl to change her career from zero to software testing?
- Hqchart quotation list Advanced Application Tutorial 2- Oriental Wealth data docking self selected stock list
猜你喜欢

How to determine whether redis has performance problems and solutions -- the road to building a dream

The funds involved in the case exceeded 1billion yuan, and another money laundering gang was brought to justice. The "two clearing" alarm should not be forgotten

The past, present and future of applets. You will understand all about applets after reading this article

Abviewer layout detector function and performance improvement

Hqchart tutorial 30- how to connect the K-line diagram with the third-party data 35- fixed range trading volume distribution diagram data

H264 authorization fee

What is the correct way to start a thread?

Several common sampling methods and principles

Intel accélère la transformation intellectuelle du nuage

Dom----- event flow
随机推荐
在苹果和三星都降价超千元后,国产手机坐不住了纷纷降价抛货
GDB notes (10) - check for memory leak, heap overflow, stack overflow, global memory overflow, and continue using after release
Shell 报告服务器信息
Matrix - 2D area and retrieval - matrix immutable, leetcode 304
Shell get IP location
Docker installation redis configuration remote connection and stepping on pits
Virus propagation simulation experiment 2- clear or coexist?
Analyse du principe d'optimisation d'une requête SQL: 900W + données, de 17s à 300ms
在centOS中requires SQLite 3.8.3 or higher报错
From just entering the testing industry to doubling my salary: talk about my advanced testing experience, which is worth learning from
日常的周报
Vector underlying implementation (common methods)
Shell simple interaction
2022-06-08: find the shortest sub array with "maximum or result" in the non negative array and return the shortest length.
php安装CI框架解决
Blazorise场景构建高性能Web应用
shell while 读行
Shell uppercase to lowercase
Dom----- event flow
[Niuke SQL] non technical quick start