Tomcat Access Tomcat Manager and Tomcat Users

Tomcat Access

After starting the tomcat server, to access the manager console, you need to modify few settings:

1.Go to Tomcat Home Directory.

2.Under tomcat home directory look for the directory name conf;


3.Open the file name tomcat-users.xml and go to the end of the file.

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

Make sure to review these roles as per the requirements, I have just added all the roles for the information purposes.

Tomcat Access Article : Completed