lrcoop 2012-08-24
工作遇到一个问题,由于误操作,在JENKINS后台管理页面把admin的管理权限弄丢了,经过研究可以登录后台,修改JENKINS_HOME中的config.xml文件中的内容,为admin重新赋予权限:
config.xml:
<?xmlversion='1.0'encoding='UTF-8'?>
<hudson>
<version>1.382</version>
<numExecutors>1</numExecutors>
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
<authorizationStrategyclass="hudson.security.ProjectMatrixAuthorizationStrategy">
<permission>hudson.model.Computer.Configure:admin</permission>
<permission>hudson.model.Computer.Delete:admin</permission>
<permission>hudson.model.Hudson.Administer:admin</permission>
<permission>hudson.model.Hudson.Read:admin</permission>