Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 53B98475B99 for ; Tue, 14 Jan 2003 02:00:37 -0500 (EST) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 7ED43475B84 for ; Tue, 14 Jan 2003 02:00:36 -0500 (EST) Received: (qmail 12876 invoked by uid 500); 14 Jan 2003 07:12:46 -0000 Date: Tue, 14 Jan 2003 01:12:46 -0600 From: Bruno Wolff III To: Stephan Szabo Cc: Andrzej Kwiatkowski , pgsql-admin@postgresql.org Subject: Re: Grants on creating tables.. Message-ID: <20030114071246.GA12838@wolff.to> Mail-Followup-To: Stephan Szabo , Andrzej Kwiatkowski , pgsql-admin@postgresql.org References: <20030113225208.C13248@kwiatek.eu.org> <20030113145609.Q60991-100000@megazone23.bigpanda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030113145609.Q60991-100000@megazone23.bigpanda.com> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/141 X-Sequence-Number: 6983 On Mon, Jan 13, 2003 at 14:59:58 -0800, Stephan Szabo 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.