Re: How to prevent users from creating tables - Mailing list pgsql-admin

From Milen A. Radev
Subject Re: How to prevent users from creating tables
Date
Msg-id gmat64$unq$1@ger.gmane.org
Whole thread Raw
In response to How to prevent users from creating tables  (raf <raf@raf.org>)
Responses Re: How to prevent users from creating tables
List pgsql-admin
raf написа:
> hi,
>
> in my database, normal users can't select, insert, update or
> delete anything directly. they can only call functions which
> are all security defining functions which give access to the
> data. that's the way i like it.
>
> however, i discovered that normal users can create new
> tables in the database. is there any way to prevent this?
> i couldn't find any grant/revoke syntax in the doco that
> looked relevant.
[...]

You need to revoke the "CREATE" privilege for the schema(s) in question
(http://www.postgresql.org/docs/current/static/sql-grant.html#SQL-GRANT-DESCRIPTION-OBJECTS).


--
Milen A. Radev

pgsql-admin by date:

Previous
From: "Daniel J. Summers"
Date:
Subject: Re: Permissions to a schema
Next
From: "Benjamin Krajmalnik"
Date:
Subject: Re: Totally inappropriate by-line for a major representative of this organization