User privileges-verification required

Поиск
Список
Период
Сортировка
От Nauman Naeem
Тема User privileges-verification required
Дата
Msg-id 211765b50602240525j601a7b91o9f10030c9045e132@mail.gmail.com
обсуждение исходный текст
Ответы Re: User privileges-verification required  (Peter Eisentraut <peter_e@gmx.net>)
Re: User privileges-verification required  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Hello all,

While playing around with database users, I noticed one odd thing
regarding user privileges.

In case I have only one user in my database who is also the DBSystem
(who carries out initdb), user then if that user takes away his
"createuser" privileges, he is unable to grant himself that privilege
again or grant that privilege to any other user that he creates.This
creates quite a fix since you end up with no superusers, nor a way to
create any other superusers.

In my opinion we should cater for such a situation, and two possible
solutions come to my mind for this:

1. Place a restriction that there should be more than one superuser
before you can issue a "NOCREATEUSER" command.

2 Only the DBsystemuser should be allowed to grant and revoke the
"createuser" privileges.

Let me know what you all think.

Thanks,
Nauman


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: User privileges-verification required