title: How to make hg serve drop root priveleges after launch?
body: <p>I have a HG repository on one of my computers. I sometimes develop on this machine, other times I use my laptop. I run the "hg serve" mini webserver to transfer changesets to and from my laptop.</p>
  
  <p>The problem is that I have to be root in order for "hg serve" to open the network ports. When I then push a change from my laptop which creates new files, they are owned by root. And the next time I want to commit something when working on the computer serving the repositories I don't have permission to some of the file. I could do </p>
  
  <pre><code>sudo hg commit
  </code></pre>
  
  <p>but that just seems excessive and annoying. </p>
  
  <p>Is there any way to launch "hg serve" have it open the network ports, then drop root priveleges when manipulating files?</p>