Manage Jenkins don't appear on Jenkins

I downloaded Jenkins.war

and placed it in the directory tomcat/webapps

. I am running http://127.0.0.1:8080/jenkins

.

I created the first job setting up jenkins and working. Everything worked well and I went to "manage jenkins" to host all permissions for everyone, but I lost all permissions and got access to manage jenkins too.

Please What should I do for making all the options in "Office Jenkins".

+3


source to share


2 answers


If you need to temporarily disable security to gain administrator access again, you can follow the steps on the Disable Security page



Stop Jenkins.
Go to $JENKINS_HOME

the filesystem and find config.xml

.
Find the element in this file <useSecurity>true</useSecurity>

.
Replace true

with false

.
Remove items authorizationStrategy

and securityRealm

.
Start Jenkins.

+3


source


The simplest solution is reset security.

Tomcat by default stores the user database in an XML file called $TOMCAT_HOME/conf/tomcat-users.xml. You can add the following lines to this file to create an admin user.
<role rolename="admin"/>
<user username="jenkins-admin" password="secret" roles="admin"/>

      



Then just restart Jenkins, go to admin panel and install everything again.

0


source







All Articles