Received: from mercury.ukc.ac.uk (mercury.ukc.ac.uk [129.12.21.10]) by postgresql.org (Postfix) with ESMTP id 9C6E1474E49 for ; Wed, 24 Apr 2002 09:20:55 -0400 (EDT) Received: from myrtle.ukc.ac.uk ([129.12.3.176] ident=root) by mercury.ukc.ac.uk with esmtp (Exim 3.22 #4) id 170MhY-00041I-00; Wed, 24 Apr 2002 14:20:52 +0100 Received: from localhost ([127.0.0.1] helo=myrtle.ukc.ac.uk ident=mlb) by myrtle.ukc.ac.uk with esmtp (Exim 3.35 #1) id 170MhY-0006A7-00; Wed, 24 Apr 2002 14:20:52 +0100 X-Mailer: exmh version 2.4 06/19/2001 with nmh-1.0.4 To: pgsql-general@postgresql.org Cc: M.L.Bowman@ukc.ac.uk Subject: User privileges Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 24 Apr 2002 14:20:52 +0100 From: "M.L.Bowman" Message-Id: X-UKC-Mail-System: No virus detected X-Archive-Number: 200204/1068 X-Sequence-Number: 23782 Hello, I have created a database (testdb) and given users trusted access to it from a single machine. host testdb xxx.xxx.xxx.xxx 255.255.225.225 trust xxx.xxx.xxx.xxx is substituted with the real IP address A user does not have, by default, any access to tables and is dependent upon the database owner to grant them. The database owner has created tables and granted various access permissions to users for those tables. This all works as expected. What I didn't anticipate was that users , by default, would be able to create tables within this database and grant access permissions on them. I do not want this functionality and need to switch it off somehow. I have looked for ways to do this within the sql commands CREATE DATABASE and GRANT, but cannot find anything. 1. How can I deny users the ability to create tables within a database yet still allow them access to existing tables created by the database owner ? Your help would be most appreciated. Many Thanks Maggie