Home » High Performance, Security, Operations
Lighttpd initgroups()
Posted on March 22nd, 2005 2 Comments »
While converting my website to lighttpd, I noticed that php processes launched by adaptive spawning can’t access certain files anymore. Small investigation has shown that the problem was caused by user httpd not joining groups specified in /etc/groups. Adding initgroups() call before calling setuid() helped, here’s the patch:
Please let me know if you’ve experienced the same problem with spawn-fcgi program.


2 Responses
Where’s the patch/solution? You finished your sentence in mid-way:
RE: Adding initgroups() call before calling setuid() helped, here’s the patch: [NOTHING HERE]
This is fixed in latest lighttpd releases.