title: Permission denied on network/samba share while accessing HG repo
body: <p>I am using EclipsePHP in Ubuntu 10.10 and try to use Mercurial (HG) to work with a repository that's located on my network-connected staging server (samba share).</p>
  
  <p>When trying to refresh the repository from within Eclipse (<code>hg status</code> really) , I get the following error thrown in my face: <code>abort: Operation not permitted: /media/sharename/myrepository/.hg/.dirstate*</code> .</p>
  
  <p>Whilst trying to find out what's wrong, I went to the network share from terminal and wrote <code>hg status</code> - the same error occurs, so it's not only occuring from within Eclipse. I tested to CHMOD the files from both my computer as well as the server - <code>chmod 777 /media/sharename/myrepository/ -R</code> - nothing changes.</p>
  
  <p>But when I accidentally ran <code>sudo hg status</code> from the repo directory, Mercurial started the fireworks and worked like a charm.</p>
  
  <p>What on earth is going wrong with my computer? Why can't i run my <code>hg</code> commands without being root?</p>