0

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?

vfclists
  • 1,632
  • 5
  • 22
  • 37

2 Answers2

1

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.

Martin Fjordvald
  • 7,749
  • 1
  • 30
  • 35
  • 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 07 '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 08 '11 at 15:55
1

Yes nginx fastcgi permissions stay with the script owner

vfclists
  • 1,632
  • 5
  • 22
  • 37