zaro

What is the username and password for Tomcat Manager?

Published in Tomcat Administration 2 mins read

The default username and password for accessing the Tomcat Manager application are admin and admin, respectively.


Accessing Tomcat Manager with Default Credentials

Apache Tomcat provides a web-based interface known as the Tomcat Manager. This application allows administrators to deploy, undeploy, start, stop, and manage web applications running on the server. For out-of-the-box installations, the Manager application is configured with simple, default credentials to facilitate initial setup and testing.

Default Login Information

To access the Tomcat Manager, you'll typically use the following default credentials:

Credential Value
Username admin
Password admin

These credentials are used to log in to the Manager HTML interface, often found at a URL similar to http://localhost:8080/manager/html after a fresh Tomcat installation and restart.

Required Role for Access

For a user to successfully access the Tomcat Manager's web interface, they must be assigned the manager-gui role in Tomcat's user configuration file (typically conf/tomcat-users.xml). This role grants the necessary permissions to interact with the Manager application through the browser. Without this role, even with the correct username and password, access will be denied.

Important Security Note

While admin/admin are the default credentials, it is crucial to change them immediately in a production environment. Using default passwords poses a significant security risk, as they are widely known and can be easily exploited.

Best practices for secure Tomcat Manager access include:

  • Change Default Credentials: Modify the username and password in conf/tomcat-users.xml to strong, unique values.
  • Restrict Access: Configure Tomcat to only allow access to the Manager application from specific IP addresses or internal networks.
  • Implement SSL/TLS: Ensure all connections to the Tomcat Manager are secured using HTTPS to encrypt login credentials and management traffic.
  • Remove Unnecessary Roles: Only assign the manager-gui role to users who genuinely need access to the Manager interface.

By following these security measures, you can ensure that your Tomcat Manager remains a powerful tool for administration without compromising the security of your server.