Difference between revisions of "Tomcat users management"
(Created page with "Category:Linux Category:Development Tomcat uses a common configuration file for its management applications. This page explains how to add new roles and users. Edi...") |
|||
Line 12: | Line 12: | ||
vim /etc/tomcat7/tomcat-users.xml | vim /etc/tomcat7/tomcat-users.xml | ||
− | # Manual installation, Tomcat | + | # Manual installation, Tomcat instance |
− | vim /opt/tomcat- | + | vim /opt/tomcat-base/conf/tomcat-users.xml |
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 08:09, 1 April 2015
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" />