Re: Create DB privilege is not inherited

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Create DB privilege is not inherited
Дата
Msg-id CAKFQuwbJOYq6hOE-MF9K_2-0XZWK1XA2UpNHt2_SWQS=kVk5zQ@mail.gmail.com
обсуждение исходный текст
Ответ на Create DB privilege is not inherited  (Ben Hancock <lists@benghancock.com>)
Ответы Re: Create DB privilege is not inherited
Список pgsql-general


On Thursday, July 27, 2023, Ben Hancock <lists@benghancock.com> wrote:

Should the CREATEDB privilege be inherited when granting the 'admins'
role to a user, or is another step required?

Or (quite possibly) have I misunderstood something else?

Docs say:


The INHERIT attribute governs inheritance of grantable privileges (that is, access privileges for database objects and role memberships). It does not apply to the special role attributes set by CREATE ROLE and ALTER ROLE. For example, being a member of a role with CREATEDB privilege does not immediately grant the ability to create databases, even if INHERIT is set; it would be necessary to become that role via SET ROLE before creating a database."

David J.

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

Предыдущее
От: Ben Hancock
Дата:
Сообщение: Create DB privilege is not inherited
Следующее
От: Ben Hancock
Дата:
Сообщение: Re: Create DB privilege is not inherited