Keep It Simple Stupid

Jenkins: admin is missing the Overall/Read permission

| comments

I stumbled upon this issue recently: somebody has created an admin user in a fresh Jenkins installation (most likely, through the normal Jenkins interface). However, after a few days, they couldn’t login as the admin, seeing this error:

admin is missing the Overall/Read permission

I couldn’t find a definite answer to the issue online. So I sshd into the jenkins box to see if I could figure something out there. I did.

In the $JENKINS_HOME directory, /Users/Shared/Jenkins/Home/ in my case, there is the users/ directory which stores some user info, and it had an admin directory. So far so good. The user seemed to be alive.

I went to $JENKINS_HOME/config.xml and it had permission tags like this:


Do you see any inconsistency? Yes, the Admin user here starts with a capital letter for some reason. Could that be a problem? I changed all Admin to admin in the file and restarted Jenkins:

sed -i '' -e 's/:Admin/:admin/g' Home/config.xml
launchctl stop org.jenkins-ci
launchctl start org.jenkins-ci

Sure enough, the login issue is fixed!