title: Unable to Change Permission for File on External Disc on Mac
body: <h1>Problem</h1>
  <p>I have a corrupt file on a network NAS:</p>
  <pre><code>/bad/bad_file.file
  </code></pre>
  <p>Which I want to remove but I cannot. The file name is extremely long, so this may be part of the problem.</p>
  <h2>Finder</h2>
  <p>The file has the permission <code>user:Read&amp;Write, everyone:No Access</code></p>
  <p>If I try to change it with in macs file info, it basically tells me that the file is not found:</p>
  <pre><code>An unexpected error occurred (error code -43).
  </code></pre>
  <h2>Terminal</h2>
  <p>If cd to the folder containing the bad file's folder</p>
  <pre><code>sudo chmod -R 777 bad   
  </code></pre>
  <p>I get</p>
  <pre><code>chmod: Unable to change file mode on bad_file.file
  </code></pre>
  <p>If I want to make myself the owner of the file:</p>
  <pre><code>sudo chown -R $(whoami) bad
  </code></pre>
  <p>I get the error:</p>
  <pre><code>chown: bad_file.file No such file or directory
  </code></pre>
  <h1>Question</h1>
  <p>How can I remove this file, or if it is not there make it disappear under the path in case it's not there?</p>