From: Grant Taylor <gtaylor@riverviewtech.net>
To: netfilter@lists.netfilter.org
Subject: Re: iptables permission problem in perl scripts
Date: Mon, 15 Aug 2005 00:47:16 -0500 [thread overview]
Message-ID: <43002C64.3040101@riverviewtech.net> (raw)
In-Reply-To: <3115d56e05081400344964ebcd@mail.gmail.com>
Can we get an ls -l of the files in question? What is the user that the web server is running as?
Grant. . . .
afshin lamei wrote:
> Dear all,
> I have a cgi script, which uses some perl scripts in which i'm running
> iptables command using "system" function, like this:
> myfile.pl:
> ......
> system("iptables -F FORWARD")
> ......
>
> the cgi file is owned by root/root and is run by user nobody.
> myfile.pl is owned by root/root, and I've it setuid (chmod u+s
> myfile.pl ; chown root:nobody myfile.pl) to be able to run iptable
> commands, but it returns this error:
> /////
> modprobe: Can't locate module ip_tables.
> iptables v1.2.11: can't initialize iptables table `nat': Permission
> denied (you must be root) perhaps iptables or your kernel needs to be
> upgraded.
> /////
> what's the solution?
> thanks a lot
> afshin lame
next prev parent reply other threads:[~2005-08-15 5:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-14 7:34 iptables permission problem in perl scripts afshin lamei
2005-08-14 8:27 ` Gavin Henry
2005-08-15 5:47 ` Grant Taylor [this message]
2005-08-15 9:17 ` /dev/rob0
2005-08-15 6:12 ` Jan Engelhardt
-- strict thread matches above, loose matches on Subject: below --
2005-08-14 9:29 psihozefir
2005-08-15 5:44 ` Grant Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43002C64.3040101@riverviewtech.net \
--to=gtaylor@riverviewtech.net \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.