Hi,
1st time poster and perl newbie. I am writing an interface to change network settings on FreeBSD. I will need to read and write to rc.conf and resolv.conf, and execute /etc/netstart at the end for the new settings to take effect. However, I will need root access to 1) write to the 2 config files and 2) to execute /etc/netstart. Is there actually a safe way to do this through cgi? I have done some research and seems like setuid/setgid is not very safe and should not be done by a newbie like me. And I would rather not add 3rd party server side software. Thanks for any help or point in the right direction.
update: is suExec what I am looking for? Is this more safe?