title: Postgres ERROR: could not open file for reading: Permission denied
body: <p>Computer: Mac OS X, version 10.8
  Database: Postgres</p>
  
  <p>Trying to import csv file into postgres.</p>
  
  <pre><code>pg&gt; copy items_ordered from '/users/darchcruise/desktop/items_ordered.csv' with CSV;
  ERROR:  could not open file "/users/darchcruise/desktop/items_ordered.csv" for reading: Permission denied
  </code></pre>
  
  <p>Then I tried</p>
  
  <pre><code>$&gt; chown postgres /users/darchcruise/desktop/items_ordered.csv
  chown: /users/darchcruise/desktop/items_ordered.csv: Operation not permitted
  </code></pre>
  
  <p>Lastly, I tried</p>
  
  <pre><code>$&gt; ls -l
  -rw-r--r--  1 darchcruise  staff      1016 Oct 18 21:04 items_ordered.csv
  </code></pre>
  
  <p>Any help is much appreciated!</p>