LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tomcat Manager Username and Password needed (https://www.linuxquestions.org/questions/linux-newbie-8/tomcat-manager-username-and-password-needed-807333/)

pinga123 05-12-2010 04:39 AM

Tomcat Manager Username and Password needed
 
Hi guys,

Just wanted to know Where would i get the Tomcat manager's username and password .

My tomcat version is apache-tomcat-5.5.29.


Quote:

/install/apache-tomcat-5.5.29/conf/tomcat-users.xml

Code:

<?xml version='1.0' encoding='utf-8'?>
<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>


bathory 05-12-2010 04:48 AM

Hi,

You have to define the role manager, so edit tomcat-users.xml like this:
Code:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
<role rolename="manager"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="the-manager" password="secret" roles="manager,tomcat"/>
</tomcat-users>

It's better to use a different user as manager, but if you want you can add the role to an existing user, i.e.
Quote:

<user username="tomcat" password="tomcat" roles="manager,tomcat"/>
Regards


All times are GMT -5. The time now is 06:31 PM.