Knowledgebase
Is there or what is the default administrator user and password for Tomcat?
Posted by Quote Lin on 03 November 2013 10:36 PM

Tomcat will have different roles for specific access right. It defines the following roles:

manager-gui - allows access to the HTML GUI and the status pages

manager-script - allows access to the text interface and the status pages

manager-jmx - allows access to the JMX proxy and the status pages

manager-status - allows access to the status pages only

 

By default, Tomcat does not enable admin or manager access. To enable it, you have to edit the “%TOMCAT_FOLDER%/conf/tomcat-users.xml” manually.

 

In ASUSTOR NAS:

1. Please login into ssh, and modify the /usr/local/AppCentral/tomcat/conf/tomcat-users.xml

2. Go to ADM App Central to disable/enable tomcat

3. Try to login with new admin account, and password

( In the below example, admin's account is tomcat, password is admin)

 

File : tomcat-users.xml (before update) , initially, Tomcat comments all users and roles like above.

 

==modified  tomcat-users.xml  : administrator's account/password will be tomcat/admin

<?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>

File : tomcat-users.xml (after updated)

 

<?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"/>

-->

 <role rolename="admin-gui"/>

 <role rolename="admin-script"/>

 <role rolename="manager-gui"/>

 <role rolename="manager-script"/>

 <role rolename="manager-jmx"/>

 <role rolename="manager-status"/>

 <user username="tomcat" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/>

 </tomcat-users>

(11 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion