title: how to read/write the /etc/network/interfaces file
body: <p>I need to allow my local webserver (localhost) to read and write the /etc/network/interfaces file on a linux system (ubuntu).</p>
  
  <p>The data manipulation of the file is done, I just need to know the best way of granting www-data the permission to do it.</p>
  
  <p>I guess I could first log in as root and set permission for all to edit the file (not a big security risk since it is a mediaplayer and won't be accessed by any other user).</p>
  
  <p>I could also do some nifty grouping of the user, I guess... not so seasoned with these linux things.</p>
  
  <p>Anyone have a good suggestion, or input on why my suggested method is bad?</p>