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.

Share on Facebook2
Share on Google+4Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Digg thisPin on Pinterest0Share on Reddit0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing knowledge!

Leave a Reply

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

CAPTCHA