Release tomcat management screen access permission
I have installed Netbeans 8.1, in this installation, I took advantage of installing Tomcat 8.0.27. But I am not able to access the management screen, because it asks for the password.
I have tried several user settings, password and roles but without success, I tried with usuario: tomcat
and password : tomcat
and will not.
<tomcat-users>
<user password="admin" roles="manager-script,admin" username="admin"/>
<user username="ide" password="IHyVhSsB" roles="manager-script,admin"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="admin,admin-gui,manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager"/>
</tomcat-users>
0
Author: Rodrigo Hackz Exploitz, 2016-10-18
1 answers
I suggest you try reinstalling your tomcat or deleting all the entries you have added as there are many unnecessary changes to your tomcat-users.xml
file. Then, with the file with the default settings, add only the lines below:
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<role roleusername="manager-script"/>
<user username="admin" password="admin" roles="admin-gui,manager-gui,manager-script"/>
More information can be found in the documentation of Tomcat.