Best practice for Web-Interface modifying config-file
<p>For a new project, I have to write a webinterface, which has the capability of modifying a configuration file. The system this will run on is a standard debian installation with apache and php5. 
The only idea I came up with so far, is to write small c programms, setting the setuid bit to root and supplying the string to be inserted in the config file as a parameter. However I really have a bad feeling about this, since I would rather avoid any setuid programms in my system, for security reasons.
Unfortunatelly, the programm to witch the config file belongs refuses to start, if the config file hasn't exclusive root permissions.</p>

<p>How do projects like webmin adress this issue? I would really appreciate some best-practice tipps, of how to implement this.</p>

<p>Thanks in advance</p>
