>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 <calder....@gmail.com> wrote:

> On Sat, Jan 4, 2020 at 8:36 AM bphamhuu <a09...@gmail.com> wrote:
> > 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
> [snip]
>
> > ##### Cannot read file. Reason: File '/tmp/test.txt' does not exist
>
> What "user account" is Tomcat executing as?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 

*Bang Pham Huu *
*-------------------------------------------------------------------------------------*
*Master of Science - Research Assistant at Field Monitoring Center - 4 F,
E3 BuildingViet Nam - Ha Noi National University - University of
Engineering and Technology*
*Email: a09...@gmail.com <a09...@gmail.com> - Tel: +84 164.6339.217*

*“Life is like riding a bicycle. To keep your balance, you must keep
moving.”― Albert Einstein*

Reply via email to