PDA

View Full Version : cgi script runs as what user?


zmax
09-21-2001, 08:40 PM
When a cgi script is run in my cgi-bin, is it run as the user (you) as opposed to www or nobody ?

What are the ramifications of either way and why is it done the way it is here?

Thanks.

David

Terra
09-21-2001, 10:18 PM
CGI scripts run as your user/group ids via Apache's suEXEC mechanism...

If they didn't, then you would have to jump through hoops with permissions, like you have to do with the embedded Apache PHP module...

In conclusion, be glad CGI execution is the way it is...

--
Terra
--I wouldn't have it any other way--
FutureQuest