Apr 042018

ADM

Tomcat default administrator password

  • 04 April 2018
  • ADM

 

 

 

Tomcat default administrator password - images/logos/tomcat.jpg

 

By default, Tomcat has disabled the login user to manager web application.

To activate the user login you need to edit the $TOMCAT_HOME/conf/tomcat-users.xml file.

<tomcat-user>
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
  <role rolename="manager-gui"/>
  <user username="admin" password="strongpassword" roles="manager-gui"/>

</tomcat-users>

Note: It is highly recommended not to use the default users from the commented section.

This setting will work from tomcat 7 and up.

 

 

 

References