Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DD46A47631B for ; Wed, 13 Nov 2002 12:47:17 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 39C7E47628E for ; Wed, 13 Nov 2002 12:47:17 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id gADHlMhR023648; Wed, 13 Nov 2002 12:47:22 -0500 (EST) To: Heni Lolov Cc: pgsql-admin@postgresql.org Subject: Re: CREATE TABLE in PUBLIC schema In-reply-to: <20021113155842.41664.qmail@web21001.mail.yahoo.com> References: <20021113155842.41664.qmail@web21001.mail.yahoo.com> Comments: In-reply-to Heni Lolov message dated "Wed, 13 Nov 2002 07:58:42 -0800" Date: Wed, 13 Nov 2002 12:47:22 -0500 Message-ID: <23647.1037209642@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/134 X-Sequence-Number: 6322 Heni Lolov writes: > ive tried : > revoke all ON schema public from hal; > but does not work. Why? You'd need to revoke the permissions from PUBLIC; they were never granted specifically to hal, thus the above revoke is a no-op. Don't forget to revoke CREATE at the database level, too, else a user can just create his own schema. Perhaps also revoke TEMP, depending on whether you'd like to forbid temporary tables as well. In short, something like revoke create on schema public from public; revoke create,temp on database mydb from public; should give you a database in which users can't create anything. regards, tom lane