When managing user permissions, a user might set a permission wrong and lose access when using their main administrator account. Regaining access can be done in a few steps.
global security needs to be changed, unable to login as administrator
1) Stop Jenkins
2) Edit the config.xml file in the
JENKINS_HOME folder and locate this line:
`<useSecurity>true</useSecurity>` Set the value to `false`
3) Start Jenkins
4) If you don’t know your
admin password when using
Jenkins’ own user database for your
Security Realm, go to:
``` JENKINS_URL/user/admin/configure ``` to set the new `admin` password.
5) Now go to
Manage Jenkins ->
Configure Global Security and choose your
Security Realm and
Authorization settings to re-enable security.
an alternative to step 2 is to restore a known good configuration of