This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9041|Reply: 0

Jenkins (2) Windows Reset Password Tutorial

[Copy link]
Posted on 3/30/2021 6:26:28 PM | | | |
Review:

Jenkins (1) Continuous integration, automation, and installation of Jenkins tutorials
https://www.itsvse.com/thread-9483-1-1.html

Azure DevOps 2020 (1) First Introduction to Microsoft Azure DevOps (TFS)
https://www.itsvse.com/thread-9239-1-1.html

Azure DevOps 2020 (II) Azure DevOps Server Express 2020 RC2 installation tutorial
https://www.itsvse.com/thread-9375-1-1.html

Azure DevOps 2020 (III) limits search (ES) memory footprint
https://www.itsvse.com/thread-9371-1-1.html

Azure DevOps 2020 (IV) Compiled jobs using Pipelines
https://www.itsvse.com/thread-9378-1-1.html

Azure DevOps 2020 (V) Automate the release of NUGET packages using Pipelines
https://www.itsvse.com/thread-9381-1-1.html

Azure DevOps 2020 (VI) Upgrade NuGet tools
https://www.itsvse.com/thread-9382-1-1.html
I forgot the Jenkins password I set at that time because I changed my computer, how do I reset my Jenkins account password?

Environment: Windows 10 64-bit system, Jenkins 2.249.3

First, find the application directory of the jenkins service, open the Jenkins.wrapper.log log file, and view the detailed INFO logs, as shown below:



Check out the startup configuration for Jenkins as follows:


2021-03-30 13:30:23,877 INFO  - Starting C:\Java\jdk1.8.0_211\bin\java.exe -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files\ Jenkins\jenkins.war" --httpPort=8080 --webroot="C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\war"
The webroot directory is: C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\war, so we open his parent directory and go to the .jenkins folder.

Path: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins, open the config.xml configuration file, as shown below:




willuseSecuritySet to false, as follows:



Restart the Jenkins service. Reopen the Jenkins website, and at this time, we will enter the system directly without a password, as shown in the figure below:




Click Manage Jenkins and find on the right: Insecure Jenkins allows anyone on the network to access the program as you. Consider at least enabling authentication to stop abuse. , selectSecurity settings, as shown in the figure below:



Select "Jenkins own user databaseAs shown below:



After saving,The program automatically modifies the config.xml profileto set useSecurity to true.

Click on the list of users, as follows:



Click on the user ID, select Settings, and find the password settings, as shown in the figure below:



After resetting the password, click Save.

Finally, find manage jenkins -> Configure Global Security, [Access Control] -[Authorization Policy], set "Logged-in users can do anythingOnly logged-in users can access and view, as shown in the figure below:



Restarting Jenkins Service (End)




Previous:.NET sets the default SDK version
Next:MD5 online decryption website commonly used at home and abroad
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com