pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ferdinand Smit <ferdinand@telegraafnet.nl>
To: gunnar@gunix.mine.nu
To: pgsql-admin@postgresql.org
Subject: Re: Connection problem
Date: Mon, 22 Apr 2002 14:42:48 +0200
Message-ID: <200204221242.g3MCgrB04858@server9.telegraafnet.nl> (raw)
In-Reply-To: <02042109351701.08765@fire>
References: <02042109351701.08765@fire>

On Sunday 21 April 2002 09:35, Gunnar wrote:
> 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

I think that postgres only uses the first line and that line says that 
postgres uses the ident autentication (without a password if the user is the 
same). This means that the user MUST exist in the /etc/passwd.
The second line (not used because the first is the same) allows al users 
without a password.

So remove the first line or add user to passwd.

Ferdinand



view thread (4+ messages)  latest in thread

Message-ID: <200204221242.g3MCgrB04858@server9.telegraafnet.nl>
Permalink:  ../200204221242.g3MCgrB04858@server9.telegraafnet.nl/
Also on:    postgresql.org/message-id/200204221242.g3MCgrB04858@server9.telegraafnet.nl

 · 

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: ferdinand@telegraafnet.nl, gunnar@gunix.mine.nu
  Subject: Re: Connection problem
  In-Reply-To: <200204221242.g3MCgrB04858@server9.telegraafnet.nl>
  References: <02042109351701.08765@fire> <200204221242.g3MCgrB04858@server9.telegraafnet.nl>

* 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