4

I am working with jenkins, unfortunately i was added one user as admin I forgot that password for that user, So when i try to login with other users its showing like below image. I was trying to set false to userSecurity in config.xml and restart the jenkins but it was not fixed. please suggest me how to overcome this issue

enter image description here

Lakshmi Reddy
  • 313
  • 5
  • 17
  • Possible duplicate of [Jenkins Github Authentication error: user is missing the Overall/Read permission](http://stackoverflow.com/questions/22717773/jenkins-github-authentication-error-user-is-missing-the-overall-read-permission) – kenorb Jul 07 '16 at 19:15

3 Answers3

1

You need to edit config.xml file in /var/lib/jenkins and remove the lines with useSecurity and authorizationStrategy, then restart Jenkins.

Related:

Community
  • 1
  • 1
kenorb
  • 155,785
  • 88
  • 678
  • 743
0

Are you sure about your Jenkins home folder?

If you are working with Linux, you can have a look to the Jenkins process with:

ps aux | grep jenkins

Next, you can check where is your home folder:

etc/alternatives/java -Dcom.sun...... -DJENKINS_HOME=/var/lib/jenkins
Bruno Lavit
  • 10,184
  • 2
  • 32
  • 38
0

Try removing elements authorizationStrategy and securityRealm? Sample Reference Link

Sreehari
  • 5,621
  • 2
  • 25
  • 59
jussuper
  • 3,397
  • 1
  • 12
  • 12
  • yes even I tested by removing authorizationStrategy and securityRealm, But no use. – Lakshmi Reddy Aug 03 '15 at 12:24
  • you said that jenkins shows UserXXX is missing the Overall/Read permission. After deleting authorizationStrategy you shoud have no users and be unable to login on any account. Maybe somethings left in your config.xml file. And restart computer, not only jenkins. – jussuper Aug 03 '15 at 12:49