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.

Does the fastcgi permissions in nginx work like those in Apache, in which it runs with permissions of the script owner?

From what I see it runs with the permissions of the web user. Can it be changed to run with only the scripts owners rights?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Yes nginx fastcgi permissions stay with the script owner

share|improve this answer
add comment

From what I understand suphp achieves this by using normal CGI instead of FastCGI which makes it far slower. There is also no nginx module that can do this. Generally Nginx isn't really suited for being used stand-alone on a shared hosting server.

share|improve this answer
    
I think my you misunderstood my question. But it does, given that the fastcgipass option sends the request to a socket with a script running as the script owner I would say it does. –  vfclists Dec 7 '11 at 20:29
    
I think you phrased your question badly then. Nginx does not work with PHP as Apache does. Apache embeds PHP within itself and the Apache user == PHP user, it can even switch to different users. With Nginx there is a fastcgi abstraction layer so the nginx user != the php user and PHP cannot switch which user it runs as. If that's not what you meant the try reformulating your question. –  Martin Fjordvald Dec 8 '11 at 15:55
add comment

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.