Re: How to remove user specific grant and revoke

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: How to remove user specific grant and revoke
Дата
Msg-id 666755787.808219.1685825876788@office.mailbox.org
обсуждение исходный текст
Ответ на Re: How to remove user specific grant and revoke  (Andrus <kobruleht2@hot.ee>)
Ответы Re: How to remove user specific grant and revoke
Список pgsql-general
> On 03/06/2023 22:33 CEST Andrus <kobruleht2@hot.ee> wrote:
>
> I tried
> alter role alekspoluh reset all

This only resets role-specific settings, not privileges.

> After this command pgAdmin still shows revoke and grant commands for
> alekspoluh role.
> How to remove all grant and revoke assignments for role ?

Please confirm that \dp public.kaspriv no longer shows an ACL for alekspoluh
after running:

    REVOKE ALL ON public.kaspriv FROM alekspoluh;

There must be something wrong with pgAdmin if it still shows REVOKE ALL for
that role after its ACL is gone.  Looking at the code, pgAdmin emits REVOKE ALL
for any grantee it find in the ACL.


https://github.com/pgadmin-org/pgadmin4/blob/REL-7_2/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py#L712

--
Erik



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

Предыдущее
От: Andrus
Дата:
Сообщение: Re: How to remove user specific grant and revoke
Следующее
От: Andrus
Дата:
Сообщение: Re: How to remove user specific grant and revoke