Create Users and Roles in Tomcat Follow
The following article will walk you through the steps on how to add users in Tomcat.
There are 4 roles types in AuraPlayer ServiceManager:
- Administrator - allows to fully administer data
- Example: <user username="user1" password="user1" roles="webuser"/>
- Manager - Allows managing their own data only
- Example: <user username="user2" password="user2" roles="manager"/>
- Developer - Members can create/access all resources, cannot manage server configuration.
- Example: <user username="user3" password="user3" roles="developer"/>
- Operator - Allows having limited accessibility
- Example: <user username="user4" password="user4" roles="operator"/>
Below are the steps to add users in Tomcat:
- Open with your preferred editor the file $CATALINA_HOME/conf/tomcat-users.xml . In most cases, it is located in /usr/local/jakarta/jakarta-tomcat-4.1.31/cinf/tomcat-users.xml
- Append lines as in the example into that file within the tomcat-users node as in the following example:
<tomcat-users>
<role rolename="webuser">
<role rolename="manager">
<role rolename="developer">
<role rolename="operator">
<user username="user1" password="user1" roles="webuser"/>
<user username="user2" password="user2" roles="manager"/>
<user username="user3" password="user3" roles="developer"/>
<user username="user4" password="user4" roles="operator"/>
</tomcat-users>
- Restart tomcat
You have now added the users in Tomcat successfully!
Please note that the installation of Tomcat can be performed either on premises or on the cloud. Click here to learn more about installation of Tomcat.
If you have additional questions, feel free to contact our Support team by opening a ticket above.
Comments
0 comments
Please sign in to leave a comment.