[PLUG] python as a cgi in Apache

Kenneth G. Stephens kens at cad2cam.com
Sat Sep 14 05:56:50 UTC 2002


On Friday 13 September 2002 04:06 pm, Josh Orchard wrote:
> That command still returns nothing to me.  Odd.  I just don't get anything
> back.  Maybe the problem with running python.  If it has a valid shell it
> works at the command but still not from the server.  If no shell then the
> below command will not work also.
> Josh
>
> > Josh Orchard wrote:
> >>Since apache doesn't have a shell.  /etc/passwd has /usr/false I can't
> >>su to that user.  I did change it and have apache run the script and it
> >>is fine.
> >
> > You should be able to use the -c parameter of su to run a command. As
> > root:
> >
> > su - apache -c /path/to/file/to/run
> >
> > --
> > "The power to untie is stronger than the power to tie."
> >
> >
> > Well, yeah, otherwise my shoes would tie themselves.
> >
> >
> > ---
> >
> >
> > Russ Johnson
> >          Stargate Online
> >
> >
> > http://www.dimstar.net
> >          telnet://telnet.dimstar.net
> >                   ICQ: 3739685:Airneil
Still sounds like permissions.
Please ls -l your script.
and do a ps -auxw | grep httpd 
for us all.

-- 
Ken Stephens
CAD2CAM.COM
CADtoCAM.COM




More information about the PLUG mailing list