title: \copy permission denied while importing CSV to Postgres on Ubuntu
body: <p>I'm using Postgres on Ubuntu 14.04 and I've been trying to import a csv file to a table in Postgres called 'weather'. I've looked at the question <a href="https://stackoverflow.com/questions/19463074/postgres-error-could-not-open-file-for-reading-permission-denied">Postgres ERROR: could not open file for reading: Permission denied</a>  and tried using the <code>\copy</code> command instead of the regular copy, but I still get the same <code>Permission Denied</code> error.</p>
  <p>I'm somewhat hesitant to modify ownership permissions for all files for that directory for all the users (as suggested in the first answer). Here's the copy statement:</p>
  <pre><code>\copy weather from '/home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv' HEADER DELIMITER ',' CSV
  </code></pre>
  <p>And here's a screenshot of the terminal:</p>
  <p><a href="https://i.stack.imgur.com/ZNzeT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZNzeT.png" alt="enter image description here" /></a></p>
  <p>Why is the <code>\copy</code> not working here?</p>