From: Charles Clavadetscher <clavadetscher@swisspug.org>
To: 'Durumdara' <durumdara@gmail.com>
To: 'Postgres General' <pgsql-general@postgresql.org>
Subject: RE: Remove default privilege from DB
Date: Mon, 12 Feb 2018 10:03:43 +0100
Message-ID: <09ca01d3a3e0$685ca460$3915ed20$@swisspug.org> (raw)
In-Reply-To: <CAEcMXhn2uWDFyQ=dLzeEhdoyuvqvgYaLnOZbVmY+g3oR_NKr3g@mail.gmail.com>
References: <CAEcMXhn2uWDFyQ=dLzeEhdoyuvqvgYaLnOZbVmY+g3oR_NKr3g@mail.gmail.com>
Hi
From: Durumdara [mailto:durumdara@gmail.com]
Sent: Montag, 12. Februar 2018 09:32
To: Postgres General <pgsql-general@postgresql.org>
Subject: Remove default privilege from DB
Hello!
I need to remove default privileges from a Database.
After that some of them remains.
Default access privileges
Owner | Schema | Type | Access privileges
------------+--------+----------+-------------------
postgres | | function | =X/postgres
postgres | | sequence |
postgres | | table |
postgres | | type | =U/postgres
suser | | function | =X/suser
suser | | sequence |
suser | | table |
suser | | type | =U/suser
How to completely remove the last items?
Could you send me one example?
I assume
ALTER DEFAULT PRIVILEGES FOR ROLE suser REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE suser REVOKE USAGE ON TYPE FROM PUBLIC;
Bye
Charles
Thank you for it!
Best regards
DD
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: clavadetscher@swisspug.org, durumdara@gmail.com
Subject: Re: Remove default privilege from DB
In-Reply-To: <09ca01d3a3e0$685ca460$3915ed20$@swisspug.org>
References: <CAEcMXhn2uWDFyQ=dLzeEhdoyuvqvgYaLnOZbVmY+g3oR_NKr3g@mail.gmail.com> <09ca01d3a3e0$685ca460$3915ed20$@swisspug.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