X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2A61E3AC3CD for ; Tue, 28 Dec 2004 14:26:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63007-01 for ; Tue, 28 Dec 2004 14:26:32 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id B8E713ABE01 for ; Tue, 28 Dec 2004 14:26:29 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 40so267864wri for ; Tue, 28 Dec 2004 06:26:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=PWfLWDzu7FUOIfJM4Ez9y5oyfeOcTk0k0cE5Xm8IZ93Vb1Lnr2K1ncIy5ByivdudTEPel7zL7xzaI+RNxHyjDfU3fcA7uW6apsj9NGWmEDwflUyAWa69jrId5x2lfGLorTY8g4dcNbj5c1KuHl5N4fG/+iZHI/8cNwxjw906Vzw= Received: by 10.54.20.71 with SMTP id 71mr115954wrt; Tue, 28 Dec 2004 06:26:30 -0800 (PST) Received: by 10.54.59.29 with HTTP; Tue, 28 Dec 2004 06:26:30 -0800 (PST) Message-ID: <2ef564dc041228062610a6365e@mail.gmail.com> Date: Tue, 28 Dec 2004 19:56:30 +0530 From: Sukhdeep Johar Reply-To: Sukhdeep Johar To: =?ISO-8859-1?Q?Lic=2E_Guillermo_Gonz=E1lez?= Subject: Re: help with - psql: FATAL: Password authentication failed for user "gforge" Cc: pgsql-admin@postgresql.org, Sukhdeep Johar In-Reply-To: <41D1757F.8080808@cybira.biz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <2ef564dc04122802535f2b22c@mail.gmail.com> <2ef564dc041228025440383142@mail.gmail.com> <41D15C8C.7080600@cybira.biz> <2ef564dc041228055320229353@mail.gmail.com> <41D1757F.8080808@cybira.biz> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.375 tagged_above=0 required=5 tests=AWL, BIZ_TLD, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200412/258 X-Sequence-Number: 15844 great !!=20 ok, psql works now.=20 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=E1lez 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 cry= pt > > 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=E1lez > > 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? > >> > >> > > > > > >=20 > Try this, >=20 > In your pg_hba.conf > local all all md5 > host all all 127.0.0.1 255.255.255.255 md5 >=20 > then execute with postgres user to reload de pg_hba.conf changes: >=20 > pg_ctl reload >=20 > and to access your database: >=20 > psql gforge -U gforge -W >=20 > 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. >=20 > Regards, >=20 --=20 Neither success nor failure is ever final