From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kasia Tuszynska <ktuszynska@esri.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: problem with the postgres db user
Date: Mon, 26 Sep 2011 20:54:49 -0400
Message-ID: <7394.1317084889@sss.pgh.pa.us> (raw)
In-Reply-To: <232B5217AD58584C87019E8933556D1102F4C61692@redmx2.esri.com>
References: <232B5217AD58584C87019E8933556D1102F4C61692@redmx2.esri.com>
Kasia Tuszynska <ktuszynska@esri.com> writes:
> If I am logged in as anyone else and try: pgsql -U postgres and use the password - I get the following error:
> Psql: FATAL: Ident authentication failed for user "postgers"
That's what's supposed to happen, if you're using ident authentication.
If you want to be able to log in under someone else's name, you need to
use some other auth method, such as md5.
> pg_hba.conf, has no restriction on the postgres user, if fact it has no restriction on anyone:
> host all all 0.0.0.0/0 md5
It is not using that pg_hba entry; if it were, you'd not be getting that
error message. Likely theories are that the connection is coming in via
Unix socket not TCP (you need to fix the "local" line), or that you
forgot to SIGHUP the postmaster after editing the file, or that there's
some earlier entry in the file that's capturing these connection
attempts.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, ktuszynska@esri.com
Subject: Re: problem with the postgres db user
In-Reply-To: <7394.1317084889@sss.pgh.pa.us>
* 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