Re: pg_dumpall not working?

From: David Siebert <david(at)eclipsecat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dumpall not working?
Date: 2005-06-14 14:36:42
Message-ID: 42AEEB7A.9030907@eclipsecat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Thanks for the help but it was an SELinux policy problem.
I turned it off for now. I just do not have the time to learn SELinux
right now and my server is located behind a fire wall, contains not
sensitive data, and is just a test box for now.

Tom Lane wrote:
> David Siebert <david(at)eclipsecat(dot)com> writes:
>
>>Okay I have version 8.0.2 installed on CentOS 4.0 with all updates.
>>I SSH into the server and try and run pg_dump all and get a stream of
>>errors on the server screen but not on my ssh.
>
>
> What do you get from
>
> ls -Z /usr/bin/pg_dumpall
> ls -Z /usr/bin/pg_dump
>
> ? On a reasonably up-to-date Fedora Core 3 system I get
>
> -rwxr-xr-x root root system_u:object_r:bin_t /usr/bin/pg_dumpall
> -rwxr-xr-x root root system_u:object_r:bin_t /usr/bin/psql
>
> but it sounds a lot like you have something else, like postgresql_exec_t
> (which is set up to forbid writes to /dev/tty, I believe). If so, try
> restorecon on these files to see if that fixes it. If not, you have an
> out-of-date SELinux policy RPM ... update that, or complain to CentOS
> that they haven't borrowed Red Hat's latest version yet ;-)
>
> regards, tom lane
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vivek Khera 2005-06-14 15:37:31 Re: PostgreSQL Certification
Previous Message Shelby Cain 2005-06-14 14:15:43 Re: Hash Function: MD5 or other?

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2005-06-14 15:31:11 Re: User Quota Implementation
Previous Message Tom Lane 2005-06-14 14:31:03 Re: Gist Recovery testing