Enabling a Tomcat Manager Login on Tomcat 5.5

To enable Tomcat Manager/Admin Login on Tomcat 5.5 edit conf/tomcat-users.xml which by default has the following content:

<?xml version=’1.0′ encoding=’utf-8’?>
<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″/>

Change it into:

<?xml version=’1.0′ encoding=’utf-8’?>
<role rolename=”manager”/>
<role rolename=”admin”/>
<user username=”admin” password=”your_password_here” roles=”manager,admin”/>

To apply the changes restart Tomcat (as user tomcat)

$ cd bin
$ sh shutdown.sh
$ sh startup.sh

Tomcat Admin is not installed by default from the core package, but you can login with username admin and the password provided in the Tomcat Application Manager http://your_web_server_here:8080/manager/

You should see a web page similar to the following:

tomcat manager

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">