Re: Uploading problem

2006-07-26 Thread Li
Hi, Philippe, I started tomcat as user:tomcat group:tomcat, there is no security problem of access my data or even all my jsp pages were secured so that direct access to page source is also not allowed. I did give 770 (way enough) to let tomcat write that /temp, which /temp has same user and gro

Re: Uploading problem

2006-07-26 Thread Li
lto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 8:22 AM To: Struts Users Mailing List Subject: Re: Uploading problem Li ha scritto: > yes, /temp existed > > if i just use normal java app to write on that machine, no problem. Very strange... > > As long as i use tomcat to write

Re: Uploading problem

2006-07-26 Thread Philippe Schober
Hi, Li schrieb: thanks for replying, i guess my linux access config no problem since i can use normal java app to write up. Because normal java-apps run with the same rights as the user starting them. I guess it should be the problem for tomcat configure at its security model. And besides, u

RE: Uploading problem

2006-07-26 Thread David Friedman
and directories. It is possible you may need to alter that file with the correct GRANT permissions for "/temp" (or "/tmp" depending on what you are using). Regards, David -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26,

Re: Uploading problem

2006-07-26 Thread Li
hi Irwan, thanks for replying, i guess my linux access config no problem since i can use normal java app to write up. I guess it should be the problem for tomcat configure at its security model. And besides, use root run tomcat is not very good. Thanks any way Hi Antonio, Yeah, i just added, t

Re: Uploading problem

2006-07-26 Thread Lintang JP
-R in capital chmod -r 777 /temp On 7/26/06, Irwan Nurwandi <[EMAIL PROTECTED]> wrote: in shell console : 1. login as root 2. execute : chmod -r 777 /temp hope it work ! Regards Irwan On 7/26/06, Li <[EMAIL PROTECTED]> wrote: > yes, /temp existed > > if i just use normal java app to write

Re: Uploading problem

2006-07-26 Thread Antonio Petrelli
Li ha scritto: yes, /temp existed if i just use normal java app to write on that machine, no problem. Very strange... As long as i use tomcat to write to dir out of tomcat home dir, it has problem, i was trying to fix it without using catalina security manager I don't think it is necessar

Re: Uploading problem

2006-07-26 Thread Irwan Nurwandi
in shell console : 1. login as root 2. execute : chmod -r 777 /temp hope it work ! Regards Irwan On 7/26/06, Li <[EMAIL PROTECTED]> wrote: yes, /temp existed if i just use normal java app to write on that machine, no problem. As long as i use tomcat to write to dir out of tomcat home dir, i

Re: Uploading problem

2006-07-26 Thread Li
yes, /temp existed if i just use normal java app to write on that machine, no problem. As long as i use tomcat to write to dir out of tomcat home dir, it has problem, i was trying to fix it without using catalina security manager, you have any exp on tomcat? On 7/26/06, Antonio Petrelli <[EMAI

Re: Uploading problem

2006-07-26 Thread Antonio Petrelli
Li ha scritto: well, permission denied here means I had found the temp dir but can not write to Probably your right: it seems (at least under windows) that the parent of the root is the root itself, so the final directory will be "/temp". Does "/temp" exist? And can you write into it? Cia

Re: Uploading problem

2006-07-26 Thread Li
well, permission denied here means I had found the temp dir but can not write to On 7/26/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Li ha scritto: > java.io.FileNotFoundException: /var/../../temp/test123.jpg (Permission > denied) Uh I think it is simply a wrong path, see what was written

Re: Uploading problem

2006-07-26 Thread Antonio Petrelli
Li ha scritto: java.io.FileNotFoundException: /var/../../temp/test123.jpg (Permission denied) Uh I think it is simply a wrong path, see what was written /: start at root var: you are in /var ..: you are back in root .. (again): WTF? the parent of the root? Check how you calculate the destinatio

Re: Uploading problem

2006-07-26 Thread Li
Hi, Antonio, I was tring to write the test123.jpg file, but when creating FileOutputStream object, it failed to access the ../temp dir, which is existed. temp dir had already been given the write access java.io.FileNotFoundException: /var/../../temp/test123.jpg (Permission denied) On 7/26/06

Re: Uploading problem

2006-07-26 Thread Antonio Petrelli
Li ha scritto: Hi all, When I was trying to upload from my local machine. uploading failed. ... Any idea? Check the logs and eventually stack traces, then return here and post any suspicious log. Ciao Antonio - To unsubs