Create Users and Roles in Tomcat Follow
The following article will walk you through the steps on how to add users in Tomcat.
The ServiceManager supports the following roles:
Notice that some roles have changed starting August 7th, 2024
Below are the steps to add users in Tomcat:
- Open $CATALINA_HOME/conf/tomcat-users.xml with your preferred editor.
e.g. /usr/local/jakarta/jakarta-tomcat-4.1.31/cinf/tomcat-users.xml - Add lines as in the example below into the <tomcat-users> node:
<tomcat-users>
<role rolename="webuser"/>
<role rolename="manager"/>
<role rolename="developer"/>
<role rolename="viewer"/>
<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="viewer"/>
</tomcat-users>
- Restart tomcat
You have now successfully added users in Tomcat!
Comments
0 comments
Please sign in to leave a comment.