pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Wienhold <ewie@ewie.name>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to remove user specific grant and revoke
Date: Sat, 3 Jun 2023 22:57:56 +0200 (CEST)
Message-ID: <666755787.808219.1685825876788@office.mailbox.org> (raw)
In-Reply-To: <c8a918fa-3f8a-0ddd-12a9-85d8b24f3e22@hot.ee>
References: <568e6761-d224-7c72-59f3-267b39bde227@hot.ee>
	<2140448238.796716.1685796376553@office.mailbox.org>
	<1408288797.797459.1685797672449@office.mailbox.org>
	<c832dd7d-743e-f77f-e07b-8fbccfb059f4@hot.ee>
	<371357275.803438.1685810290820@office.mailbox.org>
	<cc2dc8b5-ba7d-7652-31f1-4038f778244f@hot.ee>
	<872810576.804014.1685813147131@office.mailbox.org>
	<b35dbd8f-9896-9708-08a8-5a1747c0ece3@hot.ee>
	<c8a918fa-3f8a-0ddd-12a9-85d8b24f3e22@hot.ee>

> 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/datab...

--
Erik





view thread (12+ messages)  latest in thread

Message-ID: <666755787.808219.1685825876788@office.mailbox.org>
Permalink:  ../666755787.808219.1685825876788@office.mailbox.org/
Also on:    postgresql.org/message-id/666755787.808219.1685825876788@office.mailbox.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ewie@ewie.name, kobruleht2@hot.ee
  Subject: Re: How to remove user specific grant and revoke
  In-Reply-To: <666755787.808219.1685825876788@office.mailbox.org>
  References: <568e6761-d224-7c72-59f3-267b39bde227@hot.ee> <2140448238.796716.1685796376553@office.mailbox.org> <1408288797.797459.1685797672449@office.mailbox.org> <c832dd7d-743e-f77f-e07b-8fbccfb059f4@hot.ee> <371357275.803438.1685810290820@office.mailbox.org> <cc2dc8b5-ba7d-7652-31f1-4038f778244f@hot.ee> <872810576.804014.1685813147131@office.mailbox.org> <b35dbd8f-9896-9708-08a8-5a1747c0ece3@hot.ee> <c8a918fa-3f8a-0ddd-12a9-85d8b24f3e22@hot.ee> <666755787.808219.1685825876788@office.mailbox.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox