title: How can I grant PostgerSQL access to export a file to my desired path?
body: <p>I've been trying to export a table to my Ubuntu Desktop using the following command:</p>
  <pre><code>\copy stock to /home/micheal/Desktop/myCSV.csv CSV HEADER
  </code></pre>
  <p>I get the following error: <strong>/home/micheal/Desktop/myCSV.csv: Permission denied</strong></p>
  <p>How can I grant permission to save this file? I don't want to save in the '/temp/' directory.</p>