Tomcat

Tomcat manager login details

To reset Tomcat manager password, follow simple steps.

1) Got to the apache-tomcat directory and open file following in your favorite editor

cd /usr/local/apache-tomcat-6.0.20/conf/

vi tomcat-users.xml

Part of file contents before update.

<tomcat-users>
<!--
<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"/>
-->

</tomcat-users>

Now , update the file as follows

<tomcat-users>
<!--
<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"/>
  <role rolename="admin"/>
  <user username="admin" password="YOURPASSWORD" roles="admin,manager"/>
</tomcat-users>

For changes to take effect, restart the Tomcat service and check by logging with the user admin and password that you have set.

Abhijit Sandhan

Love to Automate, Blog, Travel, Hike & spread Knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button