Jenkins在配置全局安全配置中忘记配置帐号admin权限致使所有帐号都只有普通权限,解决方法如下,将如下几行删除,然后重启再登陆就恢复到了默认状态。
1
2
3
4
5
6
7
8
|
# vim /var/lib/jenkins/config.xml
<useSecurity>
true
<
/useSecurity
>
<authorizationStrategy class=
"hudson.security.LegacyAuthorizationStrategy"
/>
<securityRealm class=
"hudson.security.HudsonPrivateSecurityRealm"
>
<disableSignup>
false
<
/disableSignup
>
<enableCaptcha>
false
<
/enableCaptcha
>
<
/securityRealm
>
# systemctl restart jenkins
|
本文转自 结束的伤感 51CTO博客,原文链接:http://blog.51cto.com/wangzhijian/2084400