Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Web Servers»Tomcat»How to Set Tomcat Admin and Manager Password

    How to Set Tomcat Admin and Manager Password

    RahulBy RahulNovember 26, 20142 Mins ReadUpdated:September 17, 2020

    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 setup Tomcat Admin and Manager user accounts and set their passwords.

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

  • Install Tomcat 8 on Linux
  • Install Tomcat 7 on CentOS & RHEL
  • Install Tomcat 7 on Ubuntu & Debian
  • Setup Tomcat Admin & Manager Users

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

    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 above configuration user manager only can access manager web interface but 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
    Previous ArticleHow to Install Brackets Editor on Ubuntu via PPA
    Next Article Adding User in Secondary Group using Command in Linux

    Related Posts

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

    1 Min Read

    How To Change User Password in Windows Server 2019

    Updated:June 2, 20221 Min Read

    How to Install Tomcat 10 on Debian 10

    Updated:February 18, 20225 Mins Read

    How To Secure Tomcat with Let’s Encrypt SSL

    Updated:June 4, 20223 Mins Read

    How to Install Tomcat 10 on Ubuntu 20.04

    Updated:February 18, 20226 Mins Read

    How to Reset Jenkins Admin User Password

    Updated:January 15, 20212 Mins Read

    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

    Recent Posts
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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