M BUZZ CRAZE NEWS
// general

403 with Tomcat manager

By Emma Martinez

OS: Ubuntu 18.04
Tomcat version: 9

This my conf

<Context antiResourceLocking="false" privileged="true" >
<!-- <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" /> --> <!-- i try this as well -->
<!-- <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="\d+\.\d+\.\d+\.\d+" /> -->
</Context> 

This is my tomcat-users.xml

<tomcat-users> <role rolename="admin"/> <role rolename="admin-gui"/> <role rolename="manager"/> <role rolename="manager-gui"/> <user username="name" password="pwd" roles="admin,admin-gui,manager,manager-gui"/>
</tomcat-users>

I browse 403 Access Denied

I've seen these questions and their answers

These questions from Stack Overflow

What else can I try?

1 Answer

See this question on Stack Overflow

There are TWO files context.xml

  • in $CATALINA_HOME/webapps/host-manager/META-INF
  • in $CATALINA_HOME/webapps/manager/META-INF

Add comment at <Valve in these files.

In $CATALINA_HOME/conf/tomcat-users.xml add:

<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager-status"/>
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="admin-script,admin-gui,manager-script,manager-gui,manager-status"/>

It works with TOMCAT 10.0.6 but I think it works for previous versions too.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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