Re: Too easy to log in as the "postgres" user?

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Too easy to log in as the "postgres" user?
Дата
Msg-id 20091015130320.GD17756@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Too easy to log in as the "postgres" user?  (Thom Brown <thombrown@gmail.com>)
Список pgsql-general
* Thom Brown (thombrown@gmail.com) wrote:
> Okay, I've just ended up commenting out the host lines and it's
> effective enough as far as logging in is concerned.  However, the
> websites which use the database are no longer able to connect.  I
> should point out that they are connecting to pgbouncer through a
> specific port number.  I haven't been successful in getting the sites
> to connect through a unix socket.

If you want access controls on network-based connections, you'll have to
switch to using one of the other auth methods I mentioned.  Probably the
simplest is to use 'md5' and then set passwords for the users who log
into the database.

Unix sockets are only possible if the application (pgbouncer, in your
case) and the database are on the same system.  If this is the case, you
may need to set the unix_socket parameter in pgbouncer, and make sure
that you do not have 'host' set in pgbouncer.

    Thanks,

        Stephen

Вложения

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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: SFPUG: Video from "Statistics and Postgres -- How the Planner Sees Your Data" Now on Vimeo
Следующее
От: Andrew Bailey
Дата:
Сообщение: Re: Too easy to log in as the "postgres" user?