Re: Why pg_dump 'trust' authentication fails under root and works under another user?

From: Jaroslav Záruba <jaroslav(dot)zaruba(at)gmail(dot)com>
To:
Cc: PostgreSQL - mailing list <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Why pg_dump 'trust' authentication fails under root and works under another user?
Date: 2011-03-24 09:05:00
Message-ID: AANLkTi=VQQiODWtE7P8mWLiG6M5KswidQiMFZa+P8T=c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

My pg_hba.conf looks like this:

local all postgres trust
host all postgres 192.168.1.0/24 md5
local all all ident
host all all 127.0.0.1/32 md5
host all all ::1/128 md5

2011/3/24 Guillaume Lelarge <guillaume(at)lelarge(dot)info>

> Please, answer to the list.
>

(Wrong button, I'm sorry for that.)

> Le 24/03/2011 09:13, Jaroslav Záruba a écrit :
> > Yes, it is the password for PostgreSQL.
> >
> > pg_dump: [archiver (db)] connection to database "db123" failed: FATAL:
> > password authentication failed for user "postgres"
> > FATAL: password authentication failed for user "postgres"
> >
>
> The error message says the authentication method used isn't trust. Can
> you tell us the complete content of your pg_hba.conf (without the
> comments of course), and the exact command lines (the one that work and
> the one that doesn't work).
>
>
> --
> Guillaume
> http://www.postgresql.fr
> http://dalibo.com
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Guillaume Lelarge 2011-03-24 09:27:55 Re: Why pg_dump 'trust' authentication fails under root and works under another user?
Previous Message Guillaume Lelarge 2011-03-24 08:56:56 Re: Why pg_dump 'trust' authentication fails under root and works under another user?