Jenkins configuration permission error results in the system management not being found

Problem Description:

Today, when configuring the Jenkins user permissions, because no administrator was added, the permissions were set first, so that after the application, I log in to the original account and cannot find the system management.

solution:

1. Because you use the jenkins installed by yum, you need to find the config.xml configuration file under JENKINS_HOME .

/var/lib/jenkins/
(默认的JENKINS_HOME)
ls
(查看内容)

2. We can see config.xml inside

sudo vi config.xml
(进入配置文件)
i
(修改)

3. Modify the content

①Any user can do anything (no restrictions)

<authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>

②Login users can do anything

<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"/>
 

This blog is very comprehensive: https://blog.csdn.net/kuangay/article/details/80628459

4. After the modification is successful, you need to end jenkins and restart jenkins

sudo service jenkins stop(停止)
sudo service jenkins start (启动)
sudo service jenkins restart(重启)

5. You can retrieve the "system management"!

Guess you like

Origin blog.csdn.net/weixin_44690047/article/details/110841092