title: Permission denied on postgres COPY FROM but folders have read permissions
body: <p>Running Postgres 9.2 on <code>Red Hat Enterprise Linux Server release 6.5 (Santiago)</code>. Communicating with the server using <code>PGAdmin III</code>.</p>
  
  <p>I'm trying to <code>COPY FROM</code> a CSV file at <code>/home/foo_user/dir/bar.csv</code> but get:</p>
  
  <pre><code>could not open file "/home/foo_user/dir/bar.csv" for reading: Permission denied
  </code></pre>
  
  <p><a href="https://stackoverflow.com/a/12277934/2071807">Running <code>sudo setenforce 0</code></a> via SSH returns</p>
  
  <pre><code>setenforce: SELinux is disabled
  </code></pre>
  
  <p>but doesn't resolve the problem. </p>
  
  <p><a href="https://stackoverflow.com/a/16847039/2071807">As per this suggestion</a>, permissions on the file are <code>-rwxrwxrwx</code> (overkill, I know, but just in case!). The containing folder <code>/home/foo_user</code> has <code>drwxr--r--</code> and subfolder <code>dir</code> has <code>drwxr--r--</code>.</p>
  
  <p>So it's not permissions, and it's not <code>SELinux</code>. What's left to try? (I'm assuming I don't have to restart the postgres service after any of these changes, but maybe that's not right?)</p>