Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Pham Huu Bang
>What "user account" is Tomcat executing as? tomcat user. To fix the problem, I had to change /lib/systemd/system/tomcat9.service PrivateTmp=yes to PrivateTmp=no Then, sudo systemctl daemon-reload sudo service tomcat9 restart On Mon, 6 Jan 2020 at 09:58, calder wrote: > On Sat, Jan 4, 2020

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Pham Huu Bang
Hi, Thanks for this link https://salsa.debian.org/java-team/tomcat9/blob/master/debian/README.Debian. But I cannot *read* the file from /tmp (not *write* file to /tmp). The strange thing is, it can read another file from another location, e.g in /opt/: ls -ltr /opt/rasdaman/etc/petascope.properti

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Pham Huu Bang
ava:844) On Sat, 4 Jan 2020 at 15:42, Pham Huu Bang wrote: > Hi, > > The stack trace is short with FileNotFoundException > > # Cannot read file. Reason: File '/tmp/test.txt' does not exist > java.io.FileNotFoundException: File '/tmp/test.txt' does not

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Pham Huu Bang
Hi, The stack trace is short with FileNotFoundException # Cannot read file. Reason: File '/tmp/test.txt' does not exist java.io.FileNotFoundException: File '/tmp/test.txt' does not exist at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:254) at org.apache.commons.io.FileUtils.