4

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 ?

6

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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.