Re: Postgres Enhancement Request

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Postgres Enhancement Request
Дата
Msg-id 49902029-5742-00ba-85bd-fd0ba0b7d5f3@gmx.net
обсуждение исходный текст
Ответ на Postgres Enhancement Request  ("Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>)
Ответы AW: Postgres Enhancement Request  ("Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>)
Re: Postgres Enhancement Request  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Zwettler Markus (OIZ) schrieb am 20.03.2019 um 11:10:
> CREATEROLE allows users to create new roles also having the CREATEDB privilege (at least in version 9.6).
> 
> We want special users to be able to CREATEROLE without being able to CREATEDB (eg. when usermanagement is done by the
applicationitself).
 
> 
> Please prevent users with CREATEROLE to create roles having CREATEDB (analogous SUPERUSER and REPLICATION).

I agree that would be a welcome enhancement. 

As a workaround, you can create a function owned by a superuser (or any other user with the "createrole" privilege)
using"security definer" that provides a simple "create user" capability and makes sure that the created user does not
havethe createdb privilege. 
 

The user/role that should be able to create new roles doesn't need the createrole privilege at all then. 
All it needs is the execute privilege on the function.

Thomas




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

Предыдущее
От: "Zwettler Markus (OIZ)"
Дата:
Сообщение: Postgres Enhancement Request
Следующее
От: Hendrickx Pablo
Дата:
Сообщение: Re: WSL (windows subsystem on linux) users will need to turn fsyncoff as of 11.2