Rarely we end up locking ourself in jenkins so that we couln't login Jenkins.
For example -
If you enable security before creating an account, you end up being access denied with out any login account in hand.
Jenkins throws error like
javax.servlet.ServletException: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission
This can be solved by editing the config.xml and disabling the security by changing
<useSecurity>true</useSecurity>
into
<useSecurity>false</useSecurity>
You can refer this url from Jenkins - https://wiki.jenkins-ci.org/display/JENKINS/Disable+securityFor example -
If you enable security before creating an account, you end up being access denied with out any login account in hand.
Jenkins throws error like
javax.servlet.ServletException: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission
This can be solved by editing the config.xml and disabling the security by changing
<useSecurity>true</useSecurity>
into
<useSecurity>false</useSecurity>