Setting up the Admin User for tomcat

Edit the “tomcat-users.xml” file as

vi /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/tomcat-users.xml

[You will have to find out the path for tomcat-users.xml on your server first]

Add a line like in that conf file as :

<user username=”username” password=”password” roles=”manager,admin”/>

You will have to check that none of the default users have the manager or admin roles.