How to forget the password of Jenkins in Linux

How to forget the password of Jenkins in Linux

1.Jenkins installation steps:

https://www.jb51.net/article/176615.htm

2. Change password

(1) Edit Jenkins' config.xml configuration file

vim /var/lib/jenkins/config.xml (in the JENKINS_HOME directory, each person's installation directory is different, so change it to your own path)

(2) Modify relevant configurations

1. Enter the search command to find the configuration location: /useSecurity

2. Use the <!----> symbol to comment or directly delete the following configuration

<useSecurity>true</useSecurity> 
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"> 
 <denyAnonymousReadAccess>true</denyAnonymousReadAccess> 
</authorizationStrategy> 
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm"> 
 <disableSignup>true</disableSignup> 
 <enableCaptcha>false</enableCaptcha> 
</securityRealm>

(3) Restart Jenkins

service jenkins restart

(4) Refresh the browser and log in to Jenkins directly (you don’t need to enter a password to log in at this time)
(5) Modify security configuration

Home -> System Management -> Global Security Configuration -> Check "Enable Security" -> Save

(6) Change password

Home -> User List -> Select a "User" and click to enter the details page -> Settings -> Change Password -> Save

(7) Restart Jenkins. Now you need a password to log in.

Summarize

The above is the operation steps for forgetting the password of Jenkins under Linux introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • The process of building a Jenkins project under Linux (taking CentOS 7 as an example)
  • Linux Jenkins configuration salve node implementation process diagram
  • Linux installation steps for Jenkins and various problem solving (page access initialization password)
  • Install Jenkins on Linux Server
  • Python Jenkins package build code sample code
  • How to use Jenkins to compile and package the SpringCloud microservice catalog
  • Detailed explanation of automatic signing apk when Jenkins packages android applications
  • How to automatically package and deploy Linux in Jenkins

<<:  Mysql error: Too many connections solution

>>:  Why not use UTF-8 encoding in MySQL?

Recommend

How to solve the problem of ERROR 2003 (HY000) when starting mysql

1. Problem Description When starting MYSQL, a pro...

Import CSS files using judgment conditions

Solution 1: Use conditional import in HTML docume...

10 Deadly Semantic Mistakes in Web Typography

<br />This is from the content of Web front-...

Detailed process of modifying hostname after Docker creates a container

There is a medicine for regret in the world, as l...

Application example tutorial of key in Vue page rendering

introduction During the front-end project develop...

How to enhance Linux and Unix server security

Network security is a very important topic, and t...

HTML table tag tutorial (31): cell width and height attributes WIDTH, HEIGHT

By default, the width and height of the cell are ...

How to install docker on centos

Here we only introduce the relatively simple inst...

MySQL optimization solution: enable slow query log

Table of contents Preface Setting up slow query l...