Adding users and roles to Tomcat
Find the tomcat-users.xml, its located in your %TomcatHome%/config folder.
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<role rolename="friend"/>
<user username="admin" password="pass" roles="admin,manager"/>
<user username="Scott" password="tiger" roles="friend"/>
<user username="Tom" password="cat" roles="friend"/>
</tomcat-users>
To add a role simply add <role rolename="nameOfRole"/>
Add a user <user username="Tom" password="cat" roles="friend"/>
You can assign a user to multiple roles by commaseparate the rolenames.
<user username="Tom" password="cat" roles="friend,admin,foo"/>