On Friday 16 August 2002 01:54 am, Brad wrote:
> Hi, I've written some IPchains into my perl script using perl-IPchains but
> the script has to be executed by root or ipchains refuses.
>
> Does anyone know how I can allow user "apache" to use ipchains, or how I
> can elevate my privileges within perl.

Make the script suid root... (e.g. chown root:apache script.pl ; chmod 4750 
script.pl )

Be careful. This is very dangerous. If somebody breaks apache they can alter 
your firewall.

-Mad

-- 
Madness is soil in which creativity grows

                                 - Chris Bielek

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to