Re: psql: FATAL: Ident authentication failed for user "postgres"

From: Chris <dmagick(at)gmail(dot)com>
To: Dan Joo <djoo(at)agraquest(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: psql: FATAL: Ident authentication failed for user "postgres"
Date: 2008-05-20 03:34:07
Message-ID: 483246AF.90905@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dan,

Always cc the mailing list so others can provide other suggestions where
necessary.

Dan Joo wrote:
> Thanks, Chris, but yes, I am sure that there is no such line. (see below)
>
> [root(at)RH-Dev data]# cat pg_hba.conf | grep -v '^#'
>
>
>
>
>
> local all all trust
> host all all 127.0.0.1/32 trust
> host all all ::1/128 trust
>
> Dan

Did you HUP postmaster?

The docs say you can just pg_ctl reload to do this.

> -----Original Message-----
> From: Chris [mailto:dmagick(at)gmail(dot)com]
> Sent: Monday, May 19, 2008 6:22 PM
> To: Dan Joo
> Cc: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] psql: FATAL: Ident authentication failed for user "postgres"
>
> Dan Joo wrote:
>> Hi everyone,
>>
>>
>>
>> I am having problems logging into psql as a non-‘postgres’ user.
>>
>>
>>
>> */home/djoo[5:38pm]$ %psql kermit -U postgres*
>>
>> *psql: FATAL: Ident authentication failed for user "postgres"*
>
> Sure there isn't a line like this:
>
> local all postgres ident sameuser
>
> uncommented?
>
> $ cat /path/to/pg_hba.conf | grep -v '^#'
>
> Normally the 'postgres' user is 'ident' only unless you remove (or
> comment out) that particular line, then restart postgres.
>

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2008-05-20 04:03:29 Re: DB page cache/query performance
Previous Message zax zax 2008-05-20 02:41:14 after postgresql install my pc freezes/slows critically