Re: Connection problem

From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: <gunnar(at)gunix(dot)mine(dot)nu>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Connection problem
Date: 2002-04-22 12:37:08
Message-ID: NEBBLAAHGLEEPCGOBHDGGEDHENAA.nickf@ontko.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Gunnar-

It looks to me like the two lines in pg_hba conflict, and the first one is
being used. Since you are logged in as root, it looks for "sameuser" on
foobar and doesn't get a match.

Try either logging into linux as foobar or eliminate the first line of
pg_hba.

-Nick

--------------------------------------------------------------------------
Nick Fankhauser nickf(at)ontko(dot)com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/

> -----Original Message-----
> From: pgsql-admin-owner(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Gunnar
> Sent: Sunday, April 21, 2002 2:35 AM
> To: pgsql-admin(at)postgresql(dot)org
> Subject: [ADMIN] Connection problem
>
>
> I'm having problems connecting to my postgresql 7.2.1 running on
> my Debian
> Linux box.
>
> (as root)
> $ psql template1 foobar
> psql: FATAL 1: IDENT authentication failed for user "foobar"
>
> Could anybody tell me what the problem is?
> The user "foobar" is created with the createuser command without
> any problem.
>
> Here is the pg_hba.conf
>
> local all ident sameuser
> local all trust
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ferdinand Smit 2002-04-22 12:42:48 Re: Connection problem
Previous Message Mathieu Arnold 2002-04-22 07:58:15 Re: [NOVICE] Hardware needed for 15,000,000 record DB?