From: Nuchanach Klinjun <nuchk@inet.co.th>
To: Stéphane FILLON <fillons@offratel.nc>
Cc: pgsql-sql <pgsql-sql@postgreSQL.org>
Cc: pgsql-hackers <pgsql-hackers@postgreSQL.org>
Cc: pgsql-general <pgsql-general@postgreSQL.org>
Subject: Re: [HACKERS] Permission problem with COPY FROM
Date: Wed, 15 Sep 1999 11:21:48 +0700 (GMT+0700)
Message-ID: <Pine.OSF.4.10.9909151118490.1360-100000@johann.inet.co.th> (raw)
In-Reply-To: <000e01befedd$3e2210c0$a6373ad1@portable>
Hi,
I've faced that problem too, then I use '\copy' instread
of 'copy' because 'copy' command will asked for super user previlege.
example
^^^^^^ -> \copy '/your location/your filename' to tablename;
Cheers,
On Wed, 15 Sep 1999, [iso-8859-1] Stéphane FILLON wrote:
> Hi,
>
> Each time I try to insert an ascii file with the COPY FROM command, I get the following message:
>
> "ERROR: COPY command, running in backend with effective uid 501 (that's Postgres), could not open file '/usr/local/.../cltclr001' for reading. Error: Permission not allowed (13)."
>
> What rights do I have to put to process the COPY command inside PSQL.
>
> I have try nearly everything, actual rights: uog+rw even on the directory.
>
>
> What's wrong.
>
> Stephane FILLON
>
-----------------------------------------
Nuchanach Klinjun
R&D Project. Internet Thailand
Email: nuchk@inet.co.th
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: nuchk@inet.co.th, fillons@offratel.nc, pgsql-hackers@postgreSQL.org, pgsql-general@postgreSQL.org
Subject: Re: [HACKERS] Permission problem with COPY FROM
In-Reply-To: <Pine.OSF.4.10.9909151118490.1360-100000@johann.inet.co.th>
References: <000e01befedd$3e2210c0$a6373ad1@portable> <Pine.OSF.4.10.9909151118490.1360-100000@johann.inet.co.th>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox