From: Bruno Wolff III <bruno@wolff.to>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Andrzej Kwiatkowski <kwiatek@tpi.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: Grants on creating tables..
Date: Tue, 14 Jan 2003 01:12:46 -0600
Message-ID: <20030114071246.GA12838@wolff.to> (raw)
In-Reply-To: <20030113145609.Q60991-100000@megazone23.bigpanda.com>
References: <20030113225208.C13248@kwiatek.eu.org>
<20030113145609.Q60991-100000@megazone23.bigpanda.com>
On Mon, Jan 13, 2003 at 14:59:58 -0800,
Stephan Szabo <sszabo@megazone23.bigpanda.com> wrote:
>
> On Mon, 13 Jan 2003, Andrzej Kwiatkowski wrote:
>
> > I've read that in postgres v 7.3 and above is possible to set
> > permissions for creating tables in given database...
> >
> > I've tried in many various ways, byt always given user can create
> > tables in database.
>
> If you remove the create permission from all of the schemas for the user
> they shouldn't be able to create non-temporary tables. On my empty 7.4
> devel database, after doing
>
> REVOKE CREATE on SCHEMA public FROM public;
>
> a random non-superuser account on the database no longer can create tables
> (apart from temporary ones).
You also probably want to revoke create on the database so that the person
cannot create schemas in which they could create tables.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, sszabo@megazone23.bigpanda.com, kwiatek@tpi.pl
Subject: Re: Grants on creating tables..
In-Reply-To: <20030114071246.GA12838@wolff.to>
References: <20030113225208.C13248@kwiatek.eu.org> <20030113145609.Q60991-100000@megazone23.bigpanda.com> <20030114071246.GA12838@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox