Re: Backing out of privilege grants rabbit hole

Поиск
Список
Период
Сортировка
От AC Gomez
Тема Re: Backing out of privilege grants rabbit hole
Дата
Msg-id CABtmK-g5a31Ekmt+BjpTUJZcCJLwZYrNw+3prBsLoQmPy_dftw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Backing out of privilege grants rabbit hole  (raf <raf@raf.org>)
Ответы Re: Backing out of privilege grants rabbit hole
Re: Backing out of privilege grants rabbit hole
Список pgsql-general
Granted. But we are where we are, so I'm assuming this is going to be hand to hand combat. 

On Fri, Apr 3, 2020, 12:57 AM raf <raf@raf.org> wrote:
It's probably more sensible to grant permissions to roles that
represent groups, and have roles for individual users that
inherit the permissions of the group roles. Then you don't
need to revoke the permissions just because an individiual
has left.

cheers,
raf

AC Gomez wrote:

> Thanks for the quick response. The problem is, in most cases the owner is
> not the grantee. So if a role, let's say a temp employee, gets grants, then
> leaves, I can't do a drop owned because that temp never owned those
> objects, he just was granted access. Is there a "drop granted" kind of
> thing?
>
> On Thu, Apr 2, 2020, 11:37 PM Guyren Howe <guyren@gmail.com> wrote:
>
> > https://www.postgresql.org/docs/12/sql-drop-owned.html
> >
> > On Apr 2, 2020, at 20:34 , AC Gomez <antklc@gmail.com> wrote:
> >
> > Do I understand correctly that if a role was assigned countless object
> > privileges and you want to delete that role you have to sift through a
> > myriad of privilege grants in what amounts to a time consuming trial and
> > error exercise until you've got them all?
> >
> > Or is there a single command that with just delete the role and do a
> > blanket grant removal at the same time?


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

Предыдущее
От: raf
Дата:
Сообщение: Re: Backing out of privilege grants rabbit hole
Следующее
От: postgann2020 s
Дата:
Сообщение: Re: Could someone please help us share the procedure to troubleshootthe locks on proc issues.