how can i write to a root:root 750 file with a non-root user?
hey guys, so i am trying to setup a gateway server, with a debian, using iptables as my firewall / router system.
problem is, i've made a WebInterface for it, that does the same as TurtleFirewall, but with less advanceness in it, as the people why want to use it, does not know a single thing about iptables, or command lines.
so my webinterface is running on a Apache2 service, with PHP5 scripting.
it generates a file called /var/nonpublic/router/iptables.new.rules
and i want to push thouse rules into action, when they are made.
but ofcasue i run the apache2 service as a restriced user, as it would be wierd otherwise.. and i wondereed if there was a way to, push them into action?
i've been thinking on a root cron job, running in a 1 minute interval, but i really wanted another way?
how does webmin do it? or any other webinterface, that writes to SuperUser files?
|