Re: How to prevent users from creating tables

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,"raf" <raf(at)raf(dot)org>
Subject: Re: How to prevent users from creating tables
Date: 2009-02-04 14:48:35
Message-ID: 49895663.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>> raf <raf(at)raf(dot)org> wrote:
> revoke all privileges on schema public from public;
> revoke all privileges on schema public from staff; -- staff is a
role
>
> then i get two warnings:
>
> WARNING: no privileges could be revoked for "public"
> WARNING: no privileges could be revoked for "public"
>
> and a member of the staff role can still create tables.
> if i replace "all privileges" with just "create", i
> get the same warnings and still no effect.

Are you logged in as a database superuser?

(Database owner is not good enough for this operation.)

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2009-02-04 16:59:35 Re: autovacuum question
Previous Message raf 2009-02-04 14:37:41 Re: How to prevent users from creating tables