in reply to Running Web Apps as another user

Apache's suEXEC might help you.

"The suEXEC feature -- introduced in Apache 1.2 -- provides Apache users the ability to run CGI and SSI programs under user IDs different from the user ID of the calling web-server."
--
b10m

All code is usually tested, but rarely trusted.