![](/Emoticons/tongue_smile.gif)
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<font color=="red">
<role rolename="manager"/>
<role rolename="admin"/>
<user username="fogu" password="lixin" roles="admin,manager"/>
</font>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
也就是增加manager和admin的role,同时在user列表里加入(或者修改)一个user,使他具有admin和manager权限