From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | david(at)kapitaltrading(dot)com |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #17249: Bug in .pgpass search and/or documentation thereof, Ubuntu 13.4-4 |
Date: | 2021-10-28 00:17:58 |
Message-ID: | 287305.1635380278@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> There's a bug in either the .pgpass search, or the documentation thereof, in
> 13.4-4.
Perhaps, but this example doesn't prove it. Your failing case is
> root(at)dbserver:~# psql -d postgres -U valid_user
> psql: error: connection to server on socket
> "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication
> failed for user "valid_user"
Notice it says "peer authentication", not "password authentication".
So the password was never asked for, and the problem is that you're
not logged in as "valid_user" (rather, it looks like, as "root").
> root(at)dbserver:~# psql -d postgres -U valid_user -h localhost
> psql (13.4 (Ubuntu 13.4-4.pgdg20.04+1))
> SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits:
> 256, compression: off)
This is evidently going to a different pg_hba.conf line, which
might or might not be selecting password auth --- we can't see it.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2021-10-28 01:36:11 | Re: BUG #17245: Index corruption involving deduplicated entries |
Previous Message | PG Bug reporting form | 2021-10-27 23:11:12 | BUG #17249: Bug in .pgpass search and/or documentation thereof, Ubuntu 13.4-4 |