Folder permission

Discussion in 'Security' started by EdenWeb, Jan 31, 2011.

Tags:
  1. EdenWeb

    EdenWeb New Member

    GUys - think I FUBARed the permissions on the root folder of a hosting account. It's the public_html root folder on Blacknight.
    What should the CHMOD settings on this be?
    Thanks
    Peter
     
  2. mneylon

    mneylon Administrator Staff Member

    755 I *think*
     
  3. Greg

    Greg New Member

    Better to make it 555 (r-xr-xr-x). It will protect from new files being uploaded by hacker in the root folder or deletion of files. Such as .htaccess or index.php. When you need to add some files and remove from root folder, you may change it to 755, then set 555 back.
     

Share This Page