Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 45C37B5DD8A for ; Mon, 26 Sep 2011 21:55:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 70872-01-9 for ; Tue, 27 Sep 2011 00:55:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id D0AA9B5DC1C for ; Mon, 26 Sep 2011 21:54:50 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8R0sn98007395; Mon, 26 Sep 2011 20:54:49 -0400 (EDT) To: Kasia Tuszynska cc: "pgsql-admin@postgresql.org" Subject: Re: problem with the postgres db user In-reply-to: <232B5217AD58584C87019E8933556D1102F4C61692@redmx2.esri.com> References: <232B5217AD58584C87019E8933556D1102F4C61692@redmx2.esri.com> Comments: In-reply-to Kasia Tuszynska message dated "Mon, 26 Sep 2011 16:52:48 -0700" Date: Mon, 26 Sep 2011 20:54:49 -0400 Message-ID: <7394.1317084889@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/193 X-Sequence-Number: 38430 Kasia Tuszynska 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