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

2020-01-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/7/20 9:17 AM, zahid wrote: >> Well - why do you think someone is calling you names? Mark did >> not, > right? > > My efforts in chasing up a bug which effected many Apache and non > Apache products > > and with MR Emmanuel Bourg 's

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

2020-01-07 Thread zahid
> Well - why do you think someone is calling you names? Mark did not, right? My efforts in chasing up a bug which effected many Apache  and non Apache products and  with MR Emmanuel Bourg 's  DILIGENT , VIGOROUS  efforts produced this :- [1] https://bugs.debian.org/948309 [2]

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

2020-01-06 Thread logo
Well - why do you think someone is calling you names? Mark did not, right? > Am 06.01.2020 um 22:11 schrieb Zahid Rahman : > > Are you calling me names ? > > On Mon, 6 Jan 2020, 20:35 Mark Thomas, wrote: > >> On 06/01/2020 16:29, Christopher Schultz wrote: >>> You have a right to a view, and

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

2020-01-06 Thread Zahid Rahman
Are you calling me names ? On Mon, 6 Jan 2020, 20:35 Mark Thomas, wrote: > On 06/01/2020 16:29, Christopher Schultz wrote: > > You have a right to a view, and you can troll all you want. But you > > will be ignored. > > Up to a point. > > Users that continue to troll will be unsubscribed and

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

2020-01-06 Thread Zahid Rahman
So people who find miserable software breakdowns and failures will be called trolls and blocked. That sound about right . On Mon, 6 Jan 2020, 20:35 Mark Thomas, wrote: > On 06/01/2020 16:29, Christopher Schultz wrote: > > You have a right to a view, and you can troll all you want. But

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

2020-01-06 Thread Mark Thomas
On 06/01/2020 16:29, Christopher Schultz wrote: > You have a right to a view, and you can troll all you want. But you > will be ignored. Up to a point. Users that continue to troll will be unsubscribed and blocked from re-subscribing. As a general reminder aimed at keeping noise down on the

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

2020-01-06 Thread Zahid Rahman
>Point The email header says I tried 777. There are common commands used on *.nix which are never used Ms-windows. That's one of them. It is not rant. It is sarcasm. I use " find" all the time when I don't ever need it on windows. On Mon, 6 Jan 2020, 16:10 Christopher Schultz, wrote:

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

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/6/20 04:55, zahid wrote: > 00h > >>> Have ever heard of *which* in windows ? Yea, no "which" - but >>> have you tried "where" on Win? Could also use a "for" in Win >>> (if you understand how to do it). >> >>

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

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/5/20 20:44, zahid wrote: > Why will MS Windows users will never have to deal with issue of > *chmod* ? On Windows, it's called ATTRIB.EXE: C:\> ATTRIB A SH C:\pagefile.sys A SH C:\swapfile.sys Those are separate from the NT ACL, of

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

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/4/20 20:26, zahid wrote: > > Actually this is *one of many *punishments following the sin of > choosing *.nix > > and not Microsoft Windows. > > Have ever heard of "*chmod*" in windows ? > > MS windows trust you with your machine. >

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

2020-01-06 Thread zahid
00h > Have ever heard of *which* in windows ? >Yea, no "which" - but have you tried "where" on Win? > Could also use a "for" in Win (if you understand how to do it). kub18@UB18:~$ which java /usr/bin/java kub18@UB18:~$ whereis java java: /usr/bin/java /usr/share/java

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,

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

2020-01-06 Thread calder
On Sat, Jan 4, 2020 at 8:36 AM bphamhuu 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] > #

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

2020-01-06 Thread calder
On Sat, Jan 4, 2020 at 7:26 PM zahid wrote: > Have ever heard of "*chmod*" in windows ? No, but that's because the security model in Windows is *different* than for *nix OSes. On Win, there's attrib, xcacls, cacls, and icacls, but none of those truly match was chmod does. So, one needs to

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

2020-01-05 Thread zahid
> Apples and Oranges You're right, Sorry. www.backbutton.co.uk ¯\_(ツ)_/¯ ♡۶ java -cp classpath class-path Marriage of loose and tight coupling -> healthy applications On 06/01/2020 01:47, Guang Chao wrote: On Mon, Jan 6, 2020 at 9:44 AM zahid > wrote:

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

2020-01-05 Thread Guang Chao
On Mon, Jan 6, 2020 at 9:44 AM zahid wrote: > > Why will MS Windows users will never have to deal with issue of *chmod* ? > Apples and Oranges > also keep in mind why java command line have three different options to > do the same thing ? > > java -cp > > java -classpath > > java class-path >

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

2020-01-05 Thread zahid
Why will MS Windows users will never have to deal with issue of *chmod* ? also keep in mind why java command line have three  different options to do the same thing ? java -cp java -classpath java class-path On 06/01/2020 01:21, Guang Chao wrote: On Sun, Jan 5, 2020 at 9:26 AM zahid

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

2020-01-05 Thread Guang Chao
On Sun, Jan 5, 2020 at 9:26 AM zahid wrote: > > Actually this is *one of many *punishments following the sin of choosing > *.nix > > and not Microsoft Windows. > Why is it Linux fault? > > Have ever heard of "*chmod*" in windows ? > > MS windows trust you with your machine. > > You bought it

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

2020-01-04 Thread zahid
Actually this is *one of many *punishments following the sin of choosing *.nix and not Microsoft Windows. Have ever heard of "*chmod*" in windows ? MS windows trust you with your machine. You bought it , you paid for it , you own it. although you have many ways of installing software.

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

2020-01-04 Thread Emmanuel Bourg
Le 04/01/2020 à 16:06, Pham Huu Bang a écrit : > 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

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

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

2020-01-04 Thread Olaf Kock
On 04.01.20 15:35, bphamhuu wrote: > Hello, > > 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:

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

2020-01-04 Thread Pham Huu Bang
And here is the full stack trace from my java web application using Spring Boot. INFO [2020-01-04 14:42:08] RemoteCoverageUtil@80: # Cannot read file. Reason: File '/tmp/test.txt' does not exist java.io.FileNotFoundException: File '/tmp/test.txt' does not exist at

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

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

2020-01-04 Thread M. Manna
Hi, On Sat, 4 Jan 2020 at 14:36, bphamhuu wrote: > Hello, > > 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 > >

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

2020-01-04 Thread bphamhuu
Hello, 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 =