Starting Apache as a user with root privileges

view full story

http://forums.opensuse.org – Hi. I have written a simple perl program to add a command to iptables. Here is my code : Code: #! /usr/bin/perl print "Content-type: text/html\n\n"; system("iptables -A FORWARD -s -j DROP"); I put this file in cgi-bin folder of Apache server. Here is my problem : when I run this file with shell as root user it makes change to iptables, but when I use my browser to run this file, it doesn't make any change. I'm sure this is because Apache doesn't have permission to manipulate iptables. How can I start Apache as a user with root privil (Distributions)