Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
I have an application whose class files are in /usr/local/tomcat/webapps/ROOT/WEB-INF/classes It uses the following line to write a file called java.php: FileOutputStream fout = new FileOutputStream ("/usr/local/tomcat/webapps/ROOT/java.php", true); It does this perfectly. What I want is to wr

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
The Tomcat is installed on my site under Debian. I think it's the standard version with directories in the usual places. -- View this message in context: http://old.nabble.com/Reading-and-writing-files-outside-tomcat-directory-tp26160054p26180125.html Sent from the Tomcat - User mailing list arc

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
Thank you so much. I am absolutely new to Tomcat on Linux. I need to figure out what you mean by "user-id under which Tomcat runs". -- View this message in context: http://old.nabble.com/Reading-and-writing-files-outside-tomcat-directory-tp26160054p26180750.html Sent from the Tomcat - User mai

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
I used my ftp client (WinSCP) to change file permissions for the directory to R,W,X for others and now I am able to write the file outside the Tomcat directory. Thanks again so much. -- View this message in context: http://old.nabble.com/Reading-and-writing-files-outside-tomcat-directory-tp2616

Re: Reading and writing files outside tomcat directory

2009-11-04 Thread noobie45
Thanks. I just tried out the command and got the list of users including tomcat. -- View this message in context: http://old.nabble.com/Reading-and-writing-files-outside-tomcat-directory-tp26160054p26194539.html Sent from the Tomcat - User mailing list archive at Nabble.com. --