Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ideally I would be using suPHP however I have been forced to use DSO... How worried should I be about setting the folders permissions to 777 and how can I improve the security of doing so?

share|improve this question

I would suggest that you should worry about setting permissions to 777. I can't think of any reason (with perhaps the exception of /tmp) why you would want to.

Without providing details of what you are trying to achieve the only suggestion I can offer on improving the security is to not set permissions to 777.

Usually even 775 is more access than is required for a web directory.

Aim for 750 with the owner being a user that isn't the web server user and the group used containing the user of the web server.

For example if your web server is being run by user apache in the group apache and your username is jigs then set

  • folder owner to jigs
  • folder group to apache
  • permissions to 750

As an example, it should end up looking like

drwxr-w--- 6 jigs apache 4096 2010-08-13 23:54 /var/www

share|improve this answer
Actually the standard permissions for /tmp should be 1777 which is a big difference to 0777 like you suggested. – joschi Aug 14 '10 at 5:56
Thanks joschi for highlighting this. – Richard Holloway Aug 14 '10 at 7:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.