no setuid for CGI scripts?

pawn NOSpawnPAM at lightspawn.org
Mon Nov 5 06:48:59 EST 2001


I'm trying to convert a few simple CGI scripts from Perl to Python,
and was shocked to learn that the Python interpreter silently ignores
the setuid bit.

I really don't know how to get around this. Since the server is hosted
remotely I can't recompile python to allow setuid, and I can't make my
files world read/writable - I need my python CGIs to run with MY uid.

I read somewhere about using a wrapper C program but it seems really
convoluted, as well as requiring a different wrapper for each CGI.

Is there any solution, or should I stick to / am I stuck with Perl?



More information about the Python-list mailing list