Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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 ? –  Xeross 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

 
discard

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.