Home > Archive > PERL CGI Beginners > November 2005 > run cgi script as some other user
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
run cgi script as some other user
|
|
|
| Hi,
I have a cgi script which I want to run as some user other than apache.
I have tried doing this by setting effective user id, but the cgi
script does an exec of another program, which doesn't seem to inherit
the euid. Any ideas/suggestions?
TIA,
Ajar
| |
| usenet@DavidFilmer.com 2005-11-26, 3:55 am |
| Ajar wrote:
> I have a cgi script which I want to run as some user other than apache.
> I have tried doing this by setting effective user id, but the cgi
> script does an exec of another program, which doesn't seem to inherit
> the euid. Any ideas/suggestions?
You can't do this within your script or your operating system. This
happens at your webserver, so it depends on if your webserver supports
it. If you're using Apache, you can use suEXEC:
http://httpd.apache.org/docs/1.3/suexec.html
|
|
|
|
|