Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have an application that claims to require chmod 777 permissions for two of its directories (and their subdirectories). Instead of doing that, would suEXEC be a more secure alternative?

share|improve this question
I highly doubt that any application should ever have 777 without posing a security risk. – Lucas Kauffman Apr 5 '12 at 14:35
up vote 2 down vote accepted

Yes, it would. suPHP and/or using FastCGI would also work.

On a more general note, I'd be very wary about the coding practices (especially around security) of anyone who thought that chmod 0777 was the solution to a permissions problem. You might be installing an invitation to a giant pwn party on your server.

share|improve this answer
So /var/www is set to root:web where "web" is developers only (not www-data). In this case, Apache will access files under the permissions of everyone else. Will suEXEC still work given this case or should I add www-data to my "web" group? – Trent Scott Apr 6 '12 at 15:20
Yes, suExec would work, although I'd still recommend using FastCGI as it doesn't have the per-request overheads of suExec. – womble Apr 6 '12 at 23:41

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.