RE: Remove default privilege from DB

From: "Charles Clavadetscher" <clavadetscher(at)swisspug(dot)org>
To: "'Durumdara'" <durumdara(at)gmail(dot)com>, "'Postgres General'" <pgsql-general(at)postgresql(dot)org>
Subject: RE: Remove default privilege from DB
Date: 2018-02-12 09:03:43
Message-ID: 09ca01d3a3e0$685ca460$3915ed20$@swisspug.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

From: Durumdara [mailto:durumdara(at)gmail(dot)com]
Sent: Montag, 12. Februar 2018 09:32
To: Postgres General <pgsql-general(at)postgresql(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message PegoraroF10 2018-02-12 13:48:21 Re: execute block like Firebird does
Previous Message Durumdara 2018-02-12 08:31:48 Remove default privilege from DB