No password prompt logging into Postgres 8.4

Поиск
Список
Период
Сортировка
От Ben Trewern
Тема No password prompt logging into Postgres 8.4
Дата
Msg-id F55E240B-EA8F-485C-81A6-8CD19CD68CC0@talktalk.net
обсуждение исходный текст
Ответы Re: No password prompt logging into Postgres 8.4
Список pgsql-general
Using th new postgresql 8.4.0 (compiled)
On Ubuntu 8.10

I did an initdb, added a password to the postgres user and  then
changed the pg_hba.conf to:

local   all   all      md5
host   all   all     127.0.0.1/32      md5

Restarted Postgresql.

If I log in normally:

postgres@ben-desktop:~$ psql
Password:
psql (8.4.0)
Type "help" for help.

postgres=#

But if i do :

ben@ben-desktop:~$ psql -Upostgres
psql (8.4.0)
Type "help" for help.

postgres=#

You can also do :

ben@ben-desktop:~$ psql -hlocalhost -Upostgres
psql (8.4.0)
Type "help" for help.

postgres=#

Note no password prompt either time!

Looks like a bug or am I not understanding this properly.

Ben

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

Предыдущее
От: Michaël Lemaire
Дата:
Сообщение: Re: Delete triggers order in delete cascade (pg 8.3.7).
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Replication