[PLUG] python as a cgi in Apache
Russ Johnson
russj at dimstar.net
Fri Sep 13 16:55:29 UTC 2002
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
More information about the PLUG
mailing list