Re: help with - psql: FATAL: Password authentication failed for user "gforge"

From: Sukhdeep Johar <sukhdeep(at)gmail(dot)com>
To: Lic(dot) Guillermo González <g(dot)gonzalez(at)cybira(dot)biz>
Cc: pgsql-admin(at)postgresql(dot)org, Sukhdeep Johar <sukhdeep(at)gmail(dot)com>
Subject: Re: help with - psql: FATAL: Password authentication failed for user "gforge"
Date: 2004-12-28 14:26:30
Message-ID: 2ef564dc041228062610a6365e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-novice

great !!
ok, psql works now.
But pg_connect() still fails.

pg_connect() gets executed when I try to access index.php ( homepage
for gforge )
Execution stalls on reaching pg_connect() .

can you give some pointers to this. I have tried all docs that I could :(
-Sukhdeep

On Tue, 28 Dec 2004 11:02:23 -0400, Lic. Guillermo González
<g(dot)gonzalez(at)cybira(dot)biz> wrote:
> Sukhdeep Johar wrote:
> > can i set database specific access permission in pg_hba.conf ?
> > Can you give me some more details.
> >
> > My pg_hba.conf setting is :
> > local all all trust
> > host all all 127.0.0.1 255.255.255.255 crypt
> > I disabled all other lines.
> >
> > I changed the second line to this :
> > host all all 0.0.0.0 0.0.0.0 trust
> > Now the psql command passes, but even after removing
> > all access restrictions, pg_connct() is still failing.
> >
> > Can you please give some pointers what is going wrong ?
> >
> > -Sukhdeep
> >
> >
> >
> > On Tue, 28 Dec 2004 09:15:56 -0400, Lic. Guillermo González
> > <g(dot)gonzalez(at)cybira(dot)biz> wrote:
> >
> >>Sukhdeep Johar wrote:
> >>
> >>>I followed these steps to create a new user :
> >>>1. createuser -P gforge
> >>>2. createdb -U gforge -E UNICODE gforge
> >>>3. createlang plpgsql gforge
> >>>
> >>>this gave no errors.
> >>>But when I try to log in, I get the foll error
> >>># psql -h localhost -U gforge gforge
> >>>psql: FATAL: Password authentication failed for user "gforge"
> >>>
> >>>Any comments, what may be going wrong ?
> >>>--
> >>>Neither success nor failure is ever final
> >>>
> >>>
> >>
> >>Did you check your pg_hba.conf for gforge database access permisions?
> >>
> >>
> >
> >
> >
> Try this,
>
> In your pg_hba.conf
> local all all md5
> host all all 127.0.0.1 255.255.255.255 md5
>
> then execute with postgres user to reload de pg_hba.conf changes:
>
> pg_ctl reload
>
> and to access your database:
>
> psql gforge -U gforge -W
>
> Obs.:
> - refer to the psql man pages for more information about psql options.
> - Note that in the psql command is not present the -h localhost option.
>
> Regards,
>

--
Neither success nor failure is ever final

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lic. Guillermo González 2004-12-28 15:02:23 Re: help with - psql: FATAL: Password authentication failed
Previous Message Benjamin GASSMANN 2004-12-28 14:03:21 Re: help with - psql: FATAL: Password authentication failed for user "gforge"

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-12-28 15:00:35 Re: Calculating the difference between result columns
Previous Message Benjamin GASSMANN 2004-12-28 14:03:21 Re: help with - psql: FATAL: Password authentication failed for user "gforge"