Re: .pgpass not working

From: "Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk>
To: Athanasios Kostopoulos <athanasios(dot)kostopoulos(at)classmarkets(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: .pgpass not working
Date: 2013-08-07 15:16:39
Message-ID: 4E154FB60786D74BB4DFDC97BF991CAC076E1A@EXXCMPD1DAG2.cmpd1.metoffice.gov.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Yes thanks

It works now

Austen

Austen Birchall Senior Database Administrator
Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
Tel: +44 (0)1392 884481 Fax: +44 (0)1392 885681
E-mail: austen(dot)birchall(at)metoffice(dot)gov(dot)uk Website: http://www.metoffice.gov.uk

From: Athanasios Kostopoulos [mailto:athanasios(dot)kostopoulos(at)classmarkets(dot)com]
Sent: 07 August 2013 15:13
To: Birchall, Austen
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] .pgpass not working

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(dot)birchall(at)metoffice(dot)gov(dot)uk<mailto:austen(dot)birchall(at)metoffice(dot)gov(dot)uk>> wrote:
psql (8.4.13) on Red Hat 6

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

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

[postgres(at)myhost:~]$ psql -U austen -d mudb
psql: FATAL: Ident authentication failed for user "austen"
[postgres(at)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(at)postgresql(dot)org<mailto:pgsql-novice(at)postgresql(dot)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<http://www.classmarkets.com>

Amtsgericht Charlottenburg HRB 111815 B | USt.Id.Nr<http://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.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Bruce Momjian 2013-08-09 16:58:09 Re: User with "almost" superuser privileges
Previous Message Athanasios Kostopoulos 2013-08-07 14:12:53 Re: .pgpass not working