pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: wangzhipengkmust@126.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12203: No password dialog when access the postgresql server
Date: Thu, 11 Dec 2014 14:49:40 -0500
Message-ID: <5892.1418327380@sss.pgh.pa.us> (raw)
In-Reply-To: <20141211083510.2528.99469@wrigleys.postgresql.org>
References: <20141211083510.2528.99469@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <5892.1418327380@sss.pgh.pa.us>
Permalink:  ../5892.1418327380@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5892.1418327380@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, wangzhipengkmust@126.com
  Subject: Re: BUG #12203: No password dialog when access the postgresql server
  In-Reply-To: <5892.1418327380@sss.pgh.pa.us>
  References: <20141211083510.2528.99469@wrigleys.postgresql.org> <5892.1418327380@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox