title: Mercurial Permissions when using NAS
body: <p>I have a Mercurial repository that is located on a NAS (Buffalo TeraStation).  It is mounted on a Ubuntu machine and is mapped onto a Windows 7 machine.</p>
  
  <p>I have previously been able to clone, update, etc. from both the Linux machine and the Windows machine, but now am having problems.   Too many changes have been made (updating versions of hg, thg, etc.) to identify a specific point where things started to fail.</p>
  
  <p>I can read and write files from both machines from/to the NAS.   I can use "cp" to copy entire repositories, but if I attempt to clone using hg (or thg) it fails.</p>
  
  <p>When cloning an existing (in the NAS) repository to the Ubuntu machine, all of the files copy over, but the operation is aborted with the message: </p>
  
  <pre><code>abort: Operation not permitted:   (repository_path)/.hg/store/.phaseroots-94sdvj
  [command returned code 255 Thu Jul 30 17:39:45 2015
  </code></pre>
  
  <p>When cloning an exiting (in the NAS) repository to the Windows machine, the cloning hangs (with no files transferred).</p>
  
  <p>I have tried various [trusted] settings to no avail.
  I have tried performing the hg clone command manually and it works properly when done with "sudo".   However, the cloned repository then is owned by "root".</p>
  
  <p>I'm pretty sure this is a permissions problem, but have run out of ideas.  Any guidance would be appreciated!</p>