Re: COPY - permission denied

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John Seberg <johnseberg(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY - permission denied
Date: 2005-09-23 14:38:41
Message-ID: 3772.1127486321@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John Seberg <johnseberg(at)yahoo(dot)com> writes:
> I have used the COPY command dozens of times! I think
> I *get* it. But, I'm getting "permission denied"
> errors.

> This is a fresh install of Fedora Core 4 (x86). I have
> Postgresql running under the user postgres. I am
> logged into to psql as postgres. The files are owned
> by postgres and are -rw-------. They are being found -
> it isn't a "file not found" error.

Do you have SELinux running in enforcement mode? If so, it's likely
denying the server the privilege to read or write anywhere outside
/var/lib/pgsql. Check for messages about this in /var/log/messages.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2005-09-23 14:50:47 Re: How many insert + update should one transaction handle?
Previous Message Bruno Wolff III 2005-09-23 14:30:30 Re: Questions about Rollback - after insert, update,