Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Web Servers»Tomcat»What is the Tomcat Default Admin Password

    What is the Tomcat Default Admin Password

    By RahulSeptember 9, 20222 Mins Read

    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.

    1
    2
    3
    4
    5
    6
    7
    <tomcat-users>
     
      <!-- User admin can access manager and admin section both -->
      <role rolename="admin-gui" />
      <user username="admin" password="_SECRET_PASSWORD_" roles="manager-gui,admin-gui" />
     
    </tomcat-users>

    How to Change Tomcat Manager Password

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <tomcat-users>
     
      <!-- User manager can access only manager section -->
      <role rolename="manager-gui" />
      <user username="manager" password="_SECRET_PASSWORD_" roles="manager-gui" />
     
      <!-- User admin can access manager and admin section both -->
      <role rolename="admin-gui" />
      <user username="admin" password="_SECRET_PASSWORD_" roles="manager-gui,admin-gui" />
     
    </tomcat-users>

    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

    admin password tomcat
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Generate Random Passwords in Python

    How to Generate Random Password in Python

    How to Find Tomcat Version

    How to Check Tomcat Version on Linux

    Force User to Change Password at Next Login

    How to Force User to Change Password at Next Login in Linux

    View 3 Comments

    3 Comments

    1. Radha on November 17, 2017 6:14 pm

      Awesome, you saved my day

      Reply
    2. Workneh on July 5, 2017 6:50 pm

      Thanks Buddy… It was helpful

      Reply
    3. James on December 30, 2014 3:15 pm

      Thanks for the article…

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.