From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | Pedro Doria Meunier <pdoria(at)netmadeira(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: COPY ... FROM Permission denied ... |
Date: | 2009-01-06 23:19:16 |
Message-ID: | 4963E6F4.7090803@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Pedro Doria Meunier wrote:
> I have created a public folder for the effect and chown'ed both the folder and
> the file to be fed into COPY to a+rw ...
The server user (usually via the "group" or "other" permissions blocks)
must also have at least execute ('x') permissions on every directory
between the root directory (/) and the directory containing the files of
interest.
> All I'm getting is a Permission denied upon issuing the COPY command from
> within psql interactive terminal! :O
Do you have SELinux on your system? It may be denying the server access
even though the plain UNIX permissions would otherwise allow it, because
the server normally has no good reason to be accessing files from
wherever you've put them.
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Smith | 2009-01-07 06:23:27 | Re: Bgwriter and pg_stat_bgwriter.buffers_clean aspects |
Previous Message | Craig Ringer | 2009-01-06 23:16:00 | Re: Vacuum problems |