Tomcat admin password


As a newbie many users facing the problems to found out the Tomcat admin user password, the Tomcat admin password is defined in the servers main tomcat-users.xml file and we can also change the admin password by using the same file.

Open the file /usr/local/jakarta/tomcat/conf/tomcat-users.xml in your favorite editor

pico /usr/local/jakarta/tomcat/conf/tomcat-users.xml

Now search for the string

<role rolename=”manager”/>

Under the above string, the admin user and password is available in the following simple text format.

<role rolename=”manager”/>
<role rolename=”admin”/>
<user username=”admin” password=”asda!@##” roles=”admin,manager”/>
</tomcat-users>

If you want to change the Tomcat admin password then change the password under the “Password=”asda!@##” section.

After saving the changes in the “/usr/local/jakarta/tomcat/conf/tomcat-users.xml” restart the Tomcat server and browse the Tomcat admin section by using the following URL

http://server-ip:8080/manager/html
or
http://server-hostname::8080/manager/html

About Anant 386 Articles
Senior technical writer