Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tomcat-users.xml will not open in UBUNTU

I am trying to log into the host manager , but I am unable to open the tomcat-users.xm file. When I right click it to open in editor it says permission denied.

Could not open the file /etc/tomcat6/tomcat-users.xml.

You do not have the permissions necessary to open the file.

The owner is root and I even tried doing some " sudo s " cmd to change my role.

I even tried emailing myself the file to another machine but the file wont email or zip up.

like image 312
ndesign11 Avatar asked Oct 02 '13 22:10

ndesign11


People also ask

How do I access Tomcat user xml?

Open the tomcat-users. xml file, which is located by default in $CATALINA_HOME\conf\tomcat-users. xml.

What is the use of Tomcat users xml?

tomcat-users. xml is the default user database for container-managed authentication in Tomcat.


1 Answers

Try sudo chmod 777 /etc/tomcat6/tomcat-users.xml first. If you want to edit it, you may need to sudo that too: eg. sudo vim /etc/tomcat6/tomcat-users.xml.

like image 117
Asaph Avatar answered Sep 18 '22 21:09

Asaph