Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
crazzybugger - 16 Sep 2006 17:47 GMT
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 ?
Dave Glasser - 16 Sep 2006 19:45 GMT
"crazzybugger" <ajaykumarns@gmail.com> wrote on 16 Sep 2006 09:47:35
-0700 in comp.lang.java.programmer:

>hi
>    Here is a short description of what i am trying to do..........
[quoted text clipped - 6 lines]
>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.

Signature

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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.