Results 1 to 9 of 9

Thread: CHMOD questions

  1. #1
    Join Date
    Sep 2006
    Posts
    338

    CHMOD questions

    What do i chmod my directories to so they can not be looked in?

  2. #2
    not be looked in ? for not accessable ? I didnt understand.

  3. #3
    Join Date
    Dec 2002
    Location
    chica go go
    Posts
    11,858
    Not accessable via http, or not accessable via shell?

    700 is usually a good setting. Only the owner could access it, groups and other users would not be able to access it.

    If it has to be accessable via http, I believe 711 works. If you just want to shut off directory viewing, add this to .htaccess :

    Options -Indexes

    Put it in the directory, and no directory indexes could be seen.

  4. #4
    Join Date
    May 2004
    Location
    Pflugerville, TX
    Posts
    11,222
    Moved to Technical & Security Issues
    Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

  5. #5
    700 is used for READ/WRITE/EXEC for owner only and you can use -R option for recursive affect.. on all directories and files

  6. #6
    Join Date
    Sep 2006
    Posts
    338
    I'm just trying to stop someone from going to

    yourdomain.com/images/

    and being able to see everything in the images folder

    I have a phpbin but when i chmod it.....it goes back to 755?

    I made the folder to put all my .php scripts in.

  7. #7
    Join Date
    Apr 2004
    Location
    Singapore
    Posts
    1,506
    You can use the method mention by ub3r.

    Check whether you own that directory?

    One qns, are you using Windows or Linux Platform?
    tanfwc
    Singapore Managed Colocation
    Singapore BGP Announcement

  8. #8
    Join Date
    May 2005
    Location
    Portland, OR
    Posts
    28
    Rather than using CHMOD, why not configure your HTTP Server to not allow directory traversal? Or, even easier, make a blank index and drop it in there.

  9. #9
    Quote Originally Posted by ub3r
    Options -Indexes
    I'm pretty sure this is what he's asking. You might also look into the AllowOverride directive.

Posting Permissions

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