httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Gibson <bgib...@wheatonma.edu>
Subject Re: running a cgi script as root
Date Fri, 01 Feb 2002 12:27:07 GMT
Thank you very much for the suggestion!




jon schatz wrote:
> 
> On Thu, 2002-01-31 at 15:12, Brian Gibson wrote:
> > Is there any way I can get this script to run as the user root?
> 
> write a setuid wrapper in c. i believe there's an example of this in the
> perl cookbook. languages with a #! line can't be run setuid in many
> unixes. there's a detailed explanation of why this is in the camel book
> somewhere (has to do with the interpreter changing in between the time
> the script is called and the interpreter is executed iirc).
> 
> -jon
> 
> --
> jon@divisionbyzero.com || www.divisionbyzero.com
> gpg key: www.divisionbyzero.com/pubkey.asc
> think i have a virus?: www.divisionbyzero.com/pgp.html
> "You are in a twisty little maze of Sendmail rules, all confusing."
> 
>   ------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: PGP Armored File (application/x-unknown-content-type-PGP
Armored File)
>                 Description: This is a digitally signed message part

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message