Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable sandbox tomcat 9 ubuntu 20.04

I have a Tomcat 9 package of Ubuntu 20.04 installed.

Like in the manual here: https://salsa.debian.org/java-team/tomcat9/blob/master/debian/README.Debian

We need to set all the filesystems one by one (overriding).

--

Is there a way to disable the sandboxing or a way to include all filesystems or all the "/".

Or, is there a way to include a wildcard? Like all /home* (/home, /home02, /home03)

like image 710
cberni Avatar asked Oct 23 '25 09:10

cberni


1 Answers

This is controlled by systemd . The systemd tomcat9 service file on ubuntu is:

/etc/systemd/system/multi-user.target.wants/tomcat9.service

To disable the filesystem protections you'll need to change the ProtectSystem directive from the default of 'strict' to 'false'.

ProtectSystem=false

After that run:

sudo systemctl daemon-reload
sudo service tomcat9 restart
like image 178
Sheldon Ross Avatar answered Oct 26 '25 00:10

Sheldon Ross