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)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With