After installing a new Tomcat server, there will be no user created by default to access Administrator and Manager web interfaces. After completing the installation set up Tomcat Admin and Manager user accounts and set their passwords.

Advertisement

You can also visit our following articles about installing Tomcat on Linux systems.

How to Change Tomcat Administrator Password

To create user account edit conf/tomcat-users.xml file in editor and copy below configuration inside the <tomcat-users>...</tomcat-users> tags.

How to Change Tomcat Manager Password

As per the above configuration user manager only can access the manager web interface but the admin can access both admin + manager web interface.

After making above change Stop and Start your Tomcat server.

Access Roles in Tomcat

Tomcat 7 and onward releases uses the following roles for accessing Tomcat Admin and Manager interfaces. Use the following roles while creating users with specific access levels.

  1. Roles for Admin (Host Manager) Access:

    • admin-gui – This allows access to the HTML GUI
    • admin-script – This allows access to the text interface
  2. Roles for Manager (Manager App) Access:

    • manager-gui – This allows HTML GUI and the status pages
    • manager-script – This allows text interface and the status pages
    • manager-jmx – This allows JMX proxy and the status pages
    • manager-status – This allows access to the status pages only
Share.

3 Comments


Exit mobile version