Graham Dumpleton
grahamd at dscpl.com.au
Mon Jan 8 04:27:26 EST 2007
On 08/01/2007, at 5:33 PM, Randall Randall wrote: > Hi, all. > > I'm writing some CGI in Python, and one of the things I'd like > to do is make it runnable under either CGI or mod_python. That > works fine in general. > > Given that my CGI scripts need to open files for writing, I use > suEXEC with Apache 1.3 to run the Python scripts as the proper > user. > > Can someone point me at either a URL (or search terms) for > making mod_python work with suEXEC, or some alternative method > for enforcing user/group on scripts run with mod_python's > cgihandler? Short answer is you can't do it with mod_python. The only way you can have separate scripts be run as different users is with CGI and suEXEC. Graham
|