P
P
pocteg2015-03-13 20:12:31
linux
pocteg, 2015-03-13 20:12:31

How to correctly give rights to the tomcat7 folder to the tomcat user in ubuntu?

Good afternoon!
I have Tomcat 7 installed on Ubuntu. Installed it as root user. As a result, a lot of Tomcat folders got the owner root.
As a result, the utilities /manager/html and /host/manager swear during deploys/re-deploys that they do not have enough rights.
I ran the following command:
chown -vR tomcat7 /var/lib/tomcat7
As a result, everything was fine. Tomkat stopped swearing and the utilities work fine. But I'm interested in the question: did I reassign the user correctly? as a result of this operation, the user has changed for:

  • /var/lib/tomcat7/*
  • /etc/tomcat7/*
  • /usr/share/tomcat7*

These folders have been added by links.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2015-03-13
@TheKnight

I would not install Tomcat via apt-get, but would put it in the home directory of a separately created user. Directly unpacking the archive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question