X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D97769DC806 for ; Tue, 3 Jan 2006 00:10:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69091-09 for ; Tue, 3 Jan 2006 00:10:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by postgresql.org (Postfix) with ESMTP id 16AC69DC810 for ; Tue, 3 Jan 2006 00:10:12 -0400 (AST) Received: from [192.168.1.2] ([64.229.117.133]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060103041011.DRG14963.tomts10-srv.bellnexxia.net@[192.168.1.2]> for ; Mon, 2 Jan 2006 23:10:11 -0500 Message-ID: <43B9F91D.3070203@alteeve.com> Date: Mon, 02 Jan 2006 23:10:05 -0500 From: Madison Kelly User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: Ident authentication failed References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [0] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.113 required=5 tests=[AWL=0.113] X-Spam-Score: 0.113 X-Spam-Level: X-Archive-Number: 200601/55 X-Sequence-Number: 89000 Lucky Leavell wrote: > v8.0.3 > OS: SuSE 10.0 Pro > > I am new to PostgreSQL but fairly familiar with other RDBMS' such as > Ingres, Informix and MySQL. > > I am attempting to switch from using MySQL to PostgreSQL with postfix. I > have created the postfix user using createuser with a password but denying > the ability to create databases or other users. However when I attempt to > login even using psql: > > psql -W -U postfix > > it prompts me for the password and I enter the one that user was created > with. The resulting error is: > > psql: FATAL: Ident authentication failed for user 'postfix' > > I know I must be missing something simple but I cannot find it in the docs > or FAQs. Please point me in the right direction. > > Thank you, > Lucky By default, PostgreSQL won't let you connect unless your system user account matches the user account in postgres... You can either 'su' to the 'postfix' user or edit your 'pg_hba.conf' file to have the line: local all all trust Usually there will already be the line: local all all ident sameuser Be aware though that this essentially opens postgres access to anyone with shell access. There are a few other ways to deal with them but the PostgreSQL docs do a better job at explaining it than I can. HTH! Madison -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Madison Kelly (Digimer) TLE-BU; The Linux Experience, Back Up Main Project Page: http://tle-bu.org Community Forum: http://forum.tle-bu.org -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-