pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: gunnar@gunix.mine.nu
To: pgsql-admin@postgresql.org
Subject: Re: Connection problem
Date: Mon, 22 Apr 2002 07:37:08 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGGEDHENAA.nickf@ontko.com> (raw)
In-Reply-To: <02042109351701.08765@fire>

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@ontko.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@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Gunnar
> Sent: Sunday, April 21, 2002 2:35 AM
> To: pgsql-admin@postgresql.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@postgresql.org so that your
> message can get through to the mailing list cleanly
>




view thread (4+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGGEDHENAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGGEDHENAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGGEDHENAA.nickf@ontko.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nickf@ontko.com, gunnar@gunix.mine.nu
  Subject: Re: Connection problem
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGGEDHENAA.nickf@ontko.com>
  References: <02042109351701.08765@fire> <NEBBLAAHGLEEPCGOBHDGGEDHENAA.nickf@ontko.com>

* 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