Re: How to prevent users from creating tables

From: raf <raf(at)raf(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to prevent users from creating tables
Date: 2009-02-05 02:00:38
Message-ID: 20090205020037.GA29017@raf.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Kevin Grittner wrote:

> >>> 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

i wasn't logged in as the superuser.
thanks. it's good now.

cheers,
raf

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Harald Fuchs 2009-02-05 12:02:49 Re: autovacuum question
Previous Message Lee Azzarello 2009-02-05 00:03:48 Re: Failed sanity check?