Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vz6LL-00058A-DE for pgsql-general@arkaria.postgresql.org; Fri, 03 Jan 2014 15:07:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vz6LK-0003Bg-Pl for pgsql-general@arkaria.postgresql.org; Fri, 03 Jan 2014 15:07:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vz6LJ-0003BX-GX for pgsql-general@postgresql.org; Fri, 03 Jan 2014 15:07:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vz6LG-0008Bm-Ra for pgsql-general@postgresql.org; Fri, 03 Jan 2014 15:07:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s03F7FEe009603; Fri, 3 Jan 2014 10:07:15 -0500 From: Tom Lane To: Adrian Klaver cc: Jayadevan M , dinesh kumar , "pgsql-general@postgresql.org" Subject: Re: authentication failure In-reply-to: <52C6C8EE.7060207@gmail.com> References: <52C6C8EE.7060207@gmail.com> Comments: In-reply-to Adrian Klaver message dated "Fri, 03 Jan 2014 06:27:58 -0800" Date: Fri, 03 Jan 2014 10:07:15 -0500 Message-ID: <9602.1388761635@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Adrian Klaver writes: > On 01/03/2014 04:54 AM, Jayadevan M wrote: >> Yes. All the basic checks I have done. I upgraded from CENTOs 6.4 to >> 6.5. Another interesting thing - if I su - postgres and then try, it >> works. So it has something to do with the chrt user (root) settings. > It might be helpful to detail what are the 'basic' checks you did? Also > whenever I see unexplained behavior of this nature on Linux I suspect > SELinux. Is it enabled? I'm wondering if there are two Postgres instances on the machine, and the apparent inconsistency comes from connecting to one or the other. A different line of thought is that connections from inside and outside the chroot are getting different treatment in pg_hba.conf. In any case, debugging this from the client's perspective is almost impossible, because the server intentionally doesn't give a lot of detail about why authentication failed. You need to be looking at the postmaster log, possibly with log_min_messages cranked up. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general