Re: Connect to db denied for superuser inherited by group

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Connect to db denied for superuser inherited by group
Дата
Msg-id 20180316134234.GE2416@tamriel.snowman.net
обсуждение исходный текст
Ответ на Connect to db denied for superuser inherited by group  (<Michael.Dietrich@swisscom.com>)
Ответы Re: Connect to db denied for superuser inherited by group  (Tom Lane <tgl@sss.pgh.pa.us>)
AW: Connect to db denied for superuser inherited by group  (<Michael.Dietrich@swisscom.com>)
Список pgsql-admin
Greetings,

* Michael.Dietrich@swisscom.com (Michael.Dietrich@swisscom.com) wrote:
> Unexpected behavior when trying to connect to a database. Facts:
> 1) The privilege to connect to the database was revoked from public.
> 2) User without superuser privileges uses a role with superuser rights (usage confirmed with SHOW current_role.)

Please provide more details about what this step #2 actually means.

> 3) Unecpected Message: FATAL: permission denied for database "db" DETAIL: User does not have CONNECT privilege.

Details about exactly what you're doing to connect here would be
helpful.

> After granting one of the listed privileges it is working as expected.
> 1) granting superuser to user
> 2) granting connect to db for user
> 3) granting connect to db to group
> 3) granting connect to db to public
>
> What am I missing?  --Michael

CONNECT privileges are needed to be able to connect to the database, so
it's not surprising that you needed to GRANT them to the user after
REVOKE'ing them from PUBLIC.  What's not clear is what you're actually
trying to do and what you're expecting to work that apparently isn't.

Thanks!

Stephen

Вложения

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

Предыдущее
От:
Дата:
Сообщение: Connect to db denied for superuser inherited by group
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Connect to db denied for superuser inherited by group