Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vd4Uj-0006Zn-Be for pgsql-bugs@arkaria.postgresql.org; Sun, 03 Nov 2013 20:42:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vd4Ui-0000jW-Nd for pgsql-bugs@arkaria.postgresql.org; Sun, 03 Nov 2013 20:42:00 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vd4Uh-0000jP-N5 for pgsql-bugs@postgresql.org; Sun, 03 Nov 2013 20:41:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vd4Ub-0002L0-1z for pgsql-bugs@postgresql.org; Sun, 03 Nov 2013 20:41:59 +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 rA3KfqE4010940; Sun, 3 Nov 2013 15:41:52 -0500 From: Tom Lane To: Maxy cc: "pgsql-bugs@postgresql.org" Subject: Re: psql security fail? In-reply-to: <1383510021.28409.YahooMailNeo@web28804.mail.ir2.yahoo.com> References: <1383510021.28409.YahooMailNeo@web28804.mail.ir2.yahoo.com> Comments: In-reply-to Maxy message dated "Sun, 03 Nov 2013 20:20:21 +0000" Date: Sun, 03 Nov 2013 15:41:52 -0500 Message-ID: <10939.1383511312@sss.pgh.pa.us> X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Maxy writes: > Good morning, i have a pg_hba.conf > local   all             all                                     md5 > host    all             all             127.0.0.1/32            md5 > if i do a > psql -d mydb > pg asks me the password but if i do > psql -U postgresql -d mydb > pg don't ask me the password. Sounds to me like Postgres isn't actually using the pg_hba.conf file you think it is. Try "show hba_file;" while connected to see which file is really being used. Also, if you changed the file's contents, you might have forgotten to restart or SIGHUP the postmaster to get it to notice the change. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs