Re: Problem with .pgpass

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nicolas Michel <nicolas(dot)michel(at)lemail(dot)be>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem with .pgpass
Date: 2009-05-18 15:59:55
Message-ID: 1703.1242662395@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Nicolas Michel <nicolas(dot)michel(at)lemail(dot)be> writes:
> I tried to put my password in a .pgpass file into the home directory of
> the root user (so /root/.pgpass). Here is a cat of that file :
> *:*:*:*:test

> (I tried only with stars to be sure my rule was not too strict).

> So, il I try this command :

> root(at)pc:~ # psql -h localhost -U postgres

> I get :

> psql: FATAL: authentification par mot de passe choue pour
> l'utilisateur postgres

If it is not prompting you for a password then it must have successfully
gotten a password out of the file (and then failed because it's the
wrong password). I'm guessing the problem is something silly like extra
trailing space on the line with the password.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Greg Sabino Mullane 2009-05-18 16:03:51 Re: Problem with .pgpass
Previous Message Nicolas Michel 2009-05-18 15:23:10 Problem with .pgpass