Tomcat users management


Tomcat uses a common configuration file for its management applications. This page explains how to add new roles and users.


Edit configuration file:

# Package installation
vim /etc/tomcat7/tomcat-users.xml

# Manual installation, Tomcat instance
vim /opt/tomcat-base/conf/tomcat-users.xml


Add / uncomment:

<role rolename="manager" />
<role rolename="admin" />
<role rolename="manager-gui" />
<role rolename="manager-script" />
<role rolename="admin-gui" />

<user username="myUserName" password="myPassword"  roles="admin, admin-gui, manager, manager-gui, manager-script" />