title: Unix file permissions, WARNING: can't access
body: <p>I'm trying to change the permissions of a few files that are used with a webpage I'm uploading to my site. I'm using the Unix command line to do it.</p>
  
  <p>I've tried two commands:</p>
  
  <pre><code>chmod 755 index.html
  chmod 644 index.html
  </code></pre>
  
  <p>But I get the message</p>
  
  <pre><code>chmod: WARNING: can't access index.html
  </code></pre>
  
  <p>after using these commands for some reason, and I have no idea why... initially I though it might be because I had the file open in a couple of programs (text editor and web browser), but I've closed these down, and I'm still getting the same problem... any idea why, and how I can set the permissions correctly so that the file will be viewable by anyone on the web, but only editable by me?</p>
  
  <p>Cheers!</p>