Running Postgres 9.2 on Red Hat Enterprise Linux Server release 6.5 (Santiago)
. Communicating with the server using PGAdmin III
.
I'm trying to COPY FROM
a CSV file at /home/foo_user/dir/bar.csv
but get:
could not open file "/home/foo_user/dir/bar.csv" for reading: Permission denied
Running sudo setenforce 0
via SSH returns
setenforce: SELinux is disabled
but doesn't resolve the problem.
As per this suggestion, permissions on the file are -rwxrwxrwx
(overkill, I know, but just in case!). The containing folder /home/foo_user
has drwxr--r--
and subfolder dir
has drwxr--r--
.
So it's not permissions, and it's not SELinux
. 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?)