In addition to the above link, use these simple and clear steps.
I think some of the answers here were partial. Here's how I solved it:
Jenkins step /etc/init.d/jenkins stop sudo vi / var / lib / jenkins / config.xml (first copy the full text so that you wonβt run into other problems later)
2.A. change useSecurity value false false
2. Remove authorization Strategic block
Start Jenkins again: /etc/init.d/jenkins start
Access Jenkins through the URL and configure security again.
Naseeb
source share