From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Wright Subject: Re: ipset: how to run non-root Date: Sat, 18 Nov 2006 17:23:14 -0800 Message-ID: <455FB202.1060702@mailinator.com> References: <455F8DE9.8060105@mailinator.com> <20061119001541.GA13056@outback.rfc2324.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061119001541.GA13056@outback.rfc2324.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Maximilian Wilhelm wrote: > Am Samstag, den 18 November hub Mike Wright folgendes in die Tasten: >> >>I'm trying to use ipset from a php script on an apache server. > >>Does anybody know how I might accomplish this? > > > I never used ipset, but you could use a generic trick: > Set the owner of the ipset binary back to root and set the suid bit > which will result in the ability for everyone who can execute the > binary to do this "as root". > Excellent! Worked out of the box with no problems. > You might want to think about an execution restriction (e.g. via the group) > to prevent people who should no fiddle with ipset from doing so. > Done! As a paranoid I really like that advice. > I hope you have some access control via your web application... > https, ip, user Danke, :m)