pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@gmail.com>
To: Jayadevan M <maymala.jayadevan@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: dinesh kumar <dineshkumar02@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: authentication failure
Date: Sun, 05 Jan 2014 09:12:30 -0800
Message-ID: <52C9927E.9080507@gmail.com> (raw)
In-Reply-To: <CAFS1N4jYfTZpJmLESC9hLex1051k_TX-meoD=fEjBr_NDmS_VQ@mail.gmail.com>
References: <CAFS1N4jxhPcR7ae70QSDTW2EhhfZE9H88D62f9kPswOF8ok_ZA@mail.gmail.com>
	<CADfwSsAP6RbdRwPQRXK7oZSV8LKKrNGYJQU-Bnyt+TppWq2r-g@mail.gmail.com>
	<CAFS1N4h_0cdgQQ7pMT0QUyq1VD_D45V05jESctGrp722=ExqbQ@mail.gmail.com>
	<CALnrH7pgBvr-a2-BX1QRkwJswMxdZ6W8JL5r9XWuBBnsCfHSfw@mail.gmail.com>
	<CAFS1N4j5B7tR2fyjEMotG55EAYCdzkfjbUzU+YtYiFb7xmt9AQ@mail.gmail.com>
	<52C6C8EE.7060207@gmail.com>
	<9602.1388761635@sss.pgh.pa.us>
	<CAFS1N4g1jmzcdHvOsK4VfzkM0-5YiM4LiDDy0ECJ9YvWrhdt+Q@mail.gmail.com>
	<52C8252C.5050602@gmail.com>
	<CAFS1N4hnYkGW4ynUe+APcRSG0APe+aXytyVKH8zSgZ6ezA+zRA@mail.gmail.com>
	<52C97B38.8010402@gmail.com>
	<CAFS1N4jYfTZpJmLESC9hLex1051k_TX-meoD=fEjBr_NDmS_VQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 01/05/2014 07:47 AM, Jayadevan M wrote:
> With md5
> psql
> psql: FATAL:  password authentication failed for user "postgres"
>
> with trust
> psql -h localhost
> psql (9.3.2)
> Type "help" for help.
>
> back to md5
> psql -h localhost
> psql: FATAL:  password authentication failed for user "postgres"

Just noticed while testing here:

aklaver@panda:~> psql -d test -U aklaver -h localhost
psql: FATAL:  password authentication failed for user "aklaver"
password retrieved from file "/home/aklaver/.pgpass"

So psql tells you when you are getting password from pgpass.


>
> But...
>
> find / -name .pgpass
> <no file found>
>
> $ env | grep PG
> PGPORT=1234
> PGUSER=postgres
> PGHOST=localhost

Hmm, I am going to have to think about this.

>
>
>
>


-- 
Adrian Klaver
adrian.klaver@gmail.com


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (38+ messages)  latest in thread

Message-ID: <52C9927E.9080507@gmail.com>
Permalink:  ../52C9927E.9080507@gmail.com/
Also on:    postgresql.org/message-id/52C9927E.9080507@gmail.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@gmail.com, maymala.jayadevan@gmail.com, tgl@sss.pgh.pa.us, dineshkumar02@gmail.com
  Subject: Re: authentication failure
  In-Reply-To: <52C9927E.9080507@gmail.com>
  References: <CAFS1N4jxhPcR7ae70QSDTW2EhhfZE9H88D62f9kPswOF8ok_ZA@mail.gmail.com> <CADfwSsAP6RbdRwPQRXK7oZSV8LKKrNGYJQU-Bnyt+TppWq2r-g@mail.gmail.com> <CAFS1N4h_0cdgQQ7pMT0QUyq1VD_D45V05jESctGrp722=ExqbQ@mail.gmail.com> <CALnrH7pgBvr-a2-BX1QRkwJswMxdZ6W8JL5r9XWuBBnsCfHSfw@mail.gmail.com> <CAFS1N4j5B7tR2fyjEMotG55EAYCdzkfjbUzU+YtYiFb7xmt9AQ@mail.gmail.com> <52C6C8EE.7060207@gmail.com> <9602.1388761635@sss.pgh.pa.us> <CAFS1N4g1jmzcdHvOsK4VfzkM0-5YiM4LiDDy0ECJ9YvWrhdt+Q@mail.gmail.com> <52C8252C.5050602@gmail.com> <CAFS1N4hnYkGW4ynUe+APcRSG0APe+aXytyVKH8zSgZ6ezA+zRA@mail.gmail.com> <52C97B38.8010402@gmail.com> <CAFS1N4jYfTZpJmLESC9hLex1051k_TX-meoD=fEjBr_NDmS_VQ@mail.gmail.com> <52C9927E.9080507@gmail.com>

* 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