Writing problem when using servlets...........

C

crazzybugger

hi
Here is a short description of what i am trying to do..........
i am having a directory called "upload" in my public_html . I am
using a servlet to store the files into that directory (the files
uploaded by me or some one) ....
however i do not want this directory to be viewable by other people
...... so i changed the permission of that directory to 770 .........
the servlet throws an exception saying it cannot write into that
directory.......... why is that so ? and is there anyway of rectifying
or achieving my goal ?
 
D

Dave Glasser

hi
Here is a short description of what i am trying to do..........
i am having a directory called "upload" in my public_html . I am
using a servlet to store the files into that directory (the files
uploaded by me or some one) ....
however i do not want this directory to be viewable by other people
..... so i changed the permission of that directory to 770 .........
the servlet throws an exception saying it cannot write into that
directory.......... why is that so ? and is there anyway of rectifying
or achieving my goal ?


"770" indiates that the directory can be read/written/executed by both
its owner and members of its owner's group, but all other users have
no permissions at all on the directory. It looks like the user account
under which your appserver is running falls into the "all other users"
category.

Try setting the permissions to 772, which will allow users in the "all
other users" category to write to the directory, but not read it or
"execute" it (get a directory listing) from it.


--
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.

http://qform.sourceforge.net

If you're a musician, check out RPitch Relative Pitch
Ear Training Software.

http://rpitch.sourceforge.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,077
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top