Results 1 to 2 of 2
  1. #1
    mkohan is offline Member
    Join Date
    Jan 2009
    Rep Power

    Default forbidden access to directory

    Hi ,

    I installed Apache 2.2 + Tomcat 5 + SSL on Linux and they run perfect.
    The Java web application gives users(after they login) ability to upload files(pdf,ppt..) then creates a record for them, right way users can see their records and can open the documents that they uploaded.
    The problem is when they click on the link to open the files that they uploaded before they get a "forbidden" screen.

    The Java program save upload files on the APache/htdocs directory.
    To solve that I have to run following command for the htdocs directory.
    chmod 755 the_name_document.

    After that the users can access their files.

    The uploaded files could be accessible right away.
    How can I solve this problem?


  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    Look at File.setReadable(). This allows you to set authority to read only.

Similar Threads

  1. root directory
    By raghu9198 in forum New To Java
    Replies: 19
    Last Post: 01-06-2009, 04:11 AM
  2. Method access or field access
    By carderne in forum New To Java
    Replies: 2
    Last Post: 12-06-2008, 07:20 PM
  3. Traversing a directory
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-14-2008, 10:33 AM
  4. Replies: 1
    Last Post: 08-07-2007, 08:51 AM
  5. How can i get current directory?
    By Ashley in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 02:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts