< Previous | Contents | Next >
5.2.3. Declaring users and roles
Usernames, passwords and roles (groups) can be defined centrally in a Servlet container. This is done in the / etc/tomcat7/tomcat-users.xml file:
<role rolename="admin"/>
<user username="tomcat" password="s3cret" roles="admin"/>