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

I have a java web application by Tomcat 9 servlet container which tries to read a file in /tmp folder with 777 permission on Ubuntu 18.04 ls -ltr /tmp/test.txt -rwxrwxrwx 1 vagrant vagrant 10 Jan 3 17:03 /tmp/test.txt The java code is: try { result = FileUtils.readFileToString(new File(“/tmp/test.txt”)); } catch (IOException ex) { log.info(“##### Cannot…

Details