Jenkins总体/读取权限 [英] Jenkins Overall/Read permission
问题描述
在URL中打开我的Jenkins时,我似乎无法登录,它抛出一条消息:用户缺少总体/读取权限".我已经尝试过从类似问题提出的 answer ,但是禁用安全性是行不通的.詹金斯继续抛出错误.有人建议我一起删除该文件,但也失败了.有人可以为我提供其他解决方案吗?
When opening my Jenkins in the URL I cant seem to log in it throws out the message "User is missing the Overall/Read permission". I have tried the answer from a similar question but disabling the security does not work. Jenkins continue's to throw out the error. Somebody recommended that I remove the file all together but also failed. Any other solution anybody could supply me with?
我访问过的帖子已经包括: Jenkins Wiki
Posts I have visited already include: Jenkins Wiki
推荐答案
编辑/var/lib/jenkins/config.xml文件,并将您添加为Admin,如下所示:
Edit the /var/lib/jenkins/config.xml file and add you as an Admin as follows:
<authorizationStrategy class="hudson.security.ProjectMatrixAuthorizationStrategy">
.
.
<permission>hudson.model.Hudson.Administer:***Here is your username***</permission>
.
.
</authorizationStrategy>
别忘了重新启动服务器.希望这会有所帮助!
Don't forget to go to restart the Server. Hope this helps!
这篇关于Jenkins总体/读取权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!