Re: How do I revoke CREATE TABLE and other privileges? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: How do I revoke CREATE TABLE and other privileges?
Date
Msg-id 20060705232327.GA30373@winnie.fuhr.org
Whole thread Raw
In response to How do I revoke CREATE TABLE and other privileges?  ("Karen Hill" <karen_hill22@yahoo.com>)
Responses Re: How do I revoke CREATE TABLE and other privileges?  ("Karen Hill" <karen_hill22@yahoo.com>)
List pgsql-general
On Wed, Jul 05, 2006 at 02:27:19PM -0700, Karen Hill wrote:
> I would like for one role to be able to login, and execute a couple of
> functions and nothing else.  I've tried to revoke access to CREATE on
> the database, schema, and tablespace but when I tested it, the user was
> still allowed to create tables.

From the REVOKE documentation:

    Note that any particular role will have the sum of privileges
    granted directly to it, privileges granted to any role it is
    presently a member of, and privileges granted to PUBLIC.

If PUBLIC still has privileges on the objects then the role still
has privileges, even if you've attempted to revoke them.  You'll
probably need to alter the privileges that PUBLIC has, which might
also require altering other roles' privileges to compensate.

--
Michael Fuhr

pgsql-general by date:

Previous
From: Bjørn T Johansen
Date:
Subject: Re: Help making a plpgsql function?
Next
From: Chris
Date:
Subject: Re: RES: Phantom groups