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

Re: Reading and writing files outside tomcat directory

2009-11-04 Thread Ognjen Blagojevic
noobie45 wrote: 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". Every process on Linux is ran by a certain user. With command "ps -ef", you can list all the processes and users that run them (first column fr

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

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 Tom

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

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread André Warnier
noobie45 wrote: 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. Wha

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread Peter Crowther
ow me to do this, apparently for > security > reasons. But security does not really matter for me because this > application > won't be open. How do I read and write files outside the home directory? > -- > View this message in context: > http://old.nabble.com/Reading-and-

Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
Linux does not allow me to do this, apparently for security reasons. But security does not really matter for me because this application won't be open. How do I read and write files outside the home directory? -- View this message in context: http://old.nabble.com/Reading-and-writing-files