[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: running a cgi script as root
From:       jon schatz <jon () divisionbyzero ! com>
Date:       2002-01-31 23:18:58
[Download RAW message or body]


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." 

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic