Installed Tomcat via apt-get
The / usr / share / tomcat8 folder has permissions
drwxr-xr-x 5 root root tomcat8
Inside, respectively, the same. Running Tomcat
$ $ CATALINA_HOME / bin / catalina.sh start Using CATALINA_BASE: / usr / share / tomcat8 / Using CATALINA_HOME: / usr / share / tomcat8 / Using CATALINA_TMPDIR: / usr / share / tomcat8 // temp Using JRE_HOME: / usr / lib / jvm / java-8-openjdk-amd64 Using CLASSPATH:
/usr/share/tomcat8//bin/bootstrap.jar:/usr/share/tomcat8//bin/tomcat-juli.jar touch: unable to touch
'/usr/share/tomcat8//logs/catalina.out': Access Denied
/usr/share/tomcat8//bin/catalina.sh: 401: /usr/share/tomcat8//bin/catalina.sh: cannot create
/usr/share/tomcat8//logs/catalina.out: Permission denied
Looked at different instructions, it is necessary to change the type of user
In one instruction so:
sudo chown -R tomcat8: tomcat8 / usr / share / tomcat8 / logs
sudo chmod -R u + rw / usr / share / tomcat8 / logs
in another way:
udo chgrp -R tomcat8 / etc / tomcat8
sudo chmod -R g + w / etc / tomcat8
How should it even be, from whom to run the process and what rights to the folders?
/ usr / share / tomcat8
/ var / lib / tomcat8
/ var / log / tomcat8
/ etc / tomcat8
/usrdirectory are definitely not needed and harmful. regardless of what you put there and run. - aleksandr barakin