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 currently have my server setup as follows

  • A new linux user is created for every website
  • The websites root folder will be owned by this user and has 700 or 500
  • nginx runs as root:root so it can access these files
  • nginx passes PHP requests to a PHP-FPM pool for that specific website

Is there any way to not run nginx as root with this kind of setup, I don't know if it can cause any harm that it runs as root, but I'm not entirely comfortable with it.

Thanks, Xeross

share|improve this question

How about using ACLs?

share|improve this answer
Hmm, I don't really want to patch my core for this and stuff, how big of a risk is there actually by running nginx as root ? – Not Available Aug 4 '10 at 8:18
up vote 0 down vote accepted

Decided to make the www-data group a member of all the groups that had www data.

share|improve this answer

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.