6

Recently i've installed an apache tomcat 8. my tomcat-users.xml contains this:

<tomcat-users>
    <role rolename="admin-gui"/>
    <user username="tomcat" password="pass1234" roles="admin-gui"/>
</tomcat-users>

I want to enable openning manager app and server status on this user too. can anyone help me on this ?

Ali Golestan
  • 317
  • 2
  • 4
  • 21

1 Answers1

8

You need to define the appropriate roles (see the documentation for the full list), and add them to the user's roles attribute, using a comma as the separator:

<tomcat-users>
    <role rolename="admin-gui"/>
    <role rolename="manager-gui"/>
    <role rolename="manager-status"/>
    <user username="tomcat" password="pass1234" roles="admin-gui,manager-gui,manager-status"/>
</tomcat-users>
Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164