Re: BUG #17249: Bug in .pgpass search and/or documentation thereof, Ubuntu 13.4-4

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17249: Bug in .pgpass search and/or documentation thereof, Ubuntu 13.4-4
Дата
Msg-id 287305.1635380278@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17249: Bug in .pgpass search and/or documentation thereof, Ubuntu 13.4-4  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #17249: Bug in .pgpass search and/or documentation thereof, Ubuntu 13.4-4  (David Hillman <david@kapitaltrading.com>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.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@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@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



В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17249: Bug in .pgpass search and/or documentation thereof, Ubuntu 13.4-4
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: BUG #17245: Index corruption involving deduplicated entries