Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xz9kK-0001r6-Dt for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Dec 2014 19:49:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xz9kJ-0004rw-Ux for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Dec 2014 19:49:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xz9kI-0004rg-VR for pgsql-bugs@postgresql.org; Thu, 11 Dec 2014 19:49:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xz9kC-000111-0b for pgsql-bugs@postgresql.org; Thu, 11 Dec 2014 19:49:53 +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 sBBJneCp005893; Thu, 11 Dec 2014 14:49:40 -0500 From: Tom Lane To: wangzhipengkmust@126.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12203: No password dialog when access the postgresql server In-reply-to: <20141211083510.2528.99469@wrigleys.postgresql.org> References: <20141211083510.2528.99469@wrigleys.postgresql.org> Comments: In-reply-to wangzhipengkmust@126.com message dated "Thu, 11 Dec 2014 08:35:10 +0000" Date: Thu, 11 Dec 2014 14:49:40 -0500 Message-ID: <5892.1418327380@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 wangzhipengkmust@126.com writes: > When i access the postgresql server, no password verfication appear. > My postgresql server[Revision:9.3.5] installed in REDHAT 6.5. I modifed > access method MD5 in the pg_hba.conf. When i used pgadmin and access the > server from localhost, everything is normal(password dialog appear). > The pg_hba.conf was as below: > # TYPE DATABASE USER ADDRESS METHOD > # "local" is for Unix domain socket connections only > local all all md5 > # IPv4 local connections: > host all all 127.0.0.1/32 md5 > host all all 9.0.0.1/8 md5 > host all all 172.0.0.1/8 md5 > When I use the command in my window7 client: > "psql.exe -U postgres -h9.115.195.245" > After i typed enter, i directly accessed the postgres server. There isnt any > password dialog appear. The most likely reason is that your windows machine has a .pgpass file set up with the password. 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