how can you temporarily turn off the jenkins security when the adminstrators have locked out of the admin consoles?

0 votes
Aug 7 in Jenkins by Parul
32 views

1 answer to this question.

0 votes

The JENKINS_HOME organizer contains a document named config.xml. At the point when security is empowered, this record contains an XML component named useSecurity that will be set to true.

By changing this setting to false, security will be handicapped whenever Jenkins is restarted. <useSecurity>false</useSecurity> 

The incapacitating security ought to dependably be both a final retreat and a brief measure. When any conformation issues are settled, make certain to re-empower Jenkins security and reboot the CI server.

Folow the steps below :

  • Go to $JENKINS_HOME in the file system and discover the config.xml document.

  • Open this document in the editorial manager.

  • Search for the <useSecurity>true</useSecurity> component in this document.

  • Supplant true with false

  • Expel the components authorization strategy and security realm

  • Start Jenkins

At the point when Jenkins returns, it will be in an unsecured mode where everybody gets full access to the framework. 

answered Aug 7 by Sirajul
• 19,670 points

Related Questions In Jenkins

0 votes
2 answers

How to get the Maven Version of a project in Jenkins?

Since the groovy script is a bit complex ...READ MORE

answered Jul 31 in Jenkins by Sirajul
• 19,670 points
671 views
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,280 points
282 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
124 views
0 votes
1 answer
0 votes
2 answers

How do I start jenkins as an admin without having the need of entering credentials?

I found a way around: Go to /Users/Username/.jenkins/ Open config.xml and remove ...READ MORE

answered Aug 22, 2018 in Jenkins by DareDev
• 6,810 points
59 views