1. 程式人生 > >Jenkins修改使用者密碼及許可權

Jenkins修改使用者密碼及許可權

修改密碼

/root/.jenkins/users/apple/config.xml
passwordHash節點即為密碼
以下密碼為123456

#jbcrypt:$2a$10$vK1PuR574iT2Yo1k9Rhl7upxu/tWktUS3uRdweSZsD3pbsi.S7MUe

修改許可權

/root/.jenkins/config.xml 去掉以下節點值

<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>false</disableSignup>
<enableCaptcha>false</enableCaptcha>
</securityRealm>