Re: .pgpass not working - Mailing list pgsql-novice

From Athanasios Kostopoulos
Subject Re: .pgpass not working
Date
Msg-id CAFnWstP9Z_rtk=eg4w4fur5Ur6JGpi8P_rRbcLhN1d=2DZk6ag@mail.gmail.com
Whole thread Raw
In response to .pgpass not working  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
Responses Re: .pgpass not working
List pgsql-novice
Hi all,
try changing authentication method from identd to md5, reload the database so it reads the configuration file and try again.


On Wed, Aug 7, 2013 at 4:03 PM, Birchall, Austen <austen.birchall@metoffice.gov.uk> wrote:
psql (8.4.13) on Red Hat 6

I am trying to setup .pgpass and testing it I get:


[postgres@myhost:~]$ whoami
postgres
[postgres@myhost:~]$ echo $HOME
/var/lib/pgsql
[postgres@myhost:~]$ pwd
/var/lib/pgsql
[postgres@myhost:~]$ ls -la .pgpass
-rw-------. 1 postgres postgres 20 Aug  7 13:52 .pgpass
[postgres@myhost:~]$ view .pgpass
*:*:*:austen:austen

[postgres@myhost:~]$ psql -U austen -d mudb
psql: FATAL:  Ident authentication failed for user "austen"
[postgres@myhost:~]$

Can anybody see what I am doing wrong?

Thanks

Austen


Austen Birchall  Senior Database Administrator
Met Office



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


classmarkets GmbH | Schumannstraße 6 | 10117 Berlin | Deutschland
Tel: +49 (0)30 56 59 001-0 | Fax: +49 (0)30 56 59 001-99 | www.classmarkets.com

Amtsgericht Charlottenburg HRB 111815 B | USt.Id.Nr: DE 260731582
Geschäftsführer: Veit Mürz, Fabian Ströhle

Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sie darf ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen. Jede unerlaubte Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollständig oder teilweise, ist unzulässig. Bitte beachten Sie, dass E-Mail-Nachrichten an den Absender nicht für fristgebundene Mitteilungen geeignet sind. Fristgebundene Mitteilungen sind daher ausschließlich per Post oder per Telefax zu übersenden.

pgsql-novice by date:

Previous
From: "Birchall, Austen"
Date:
Subject: .pgpass not working
Next
From: "Birchall, Austen"
Date:
Subject: Re: .pgpass not working