Received: from relay.planetinternet.be (root@relay.planetinternet.be [194.119.232.24]) by hub.org (8.9.3/8.9.3) with ESMTP id SAA99354 for ; Fri, 21 Jan 2000 18:44:59 -0500 (EST) (envelope-from wdemoudt@planetinternet.be) Received: from planetinternet.be (u212-239-128-46.dialup.planetinternet.be [212.239.128.46]) by relay.planetinternet.be (8.9.3/8.9.3) with ESMTP id AAA06748; Sat, 22 Jan 2000 00:41:29 +0100 Message-ID: <3888F0B1.DA4D2E61@planetinternet.be> Date: Sat, 22 Jan 2000 00:50:09 +0100 From: De Moudt Walter X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Neil Cameron CC: pgsql-sql@postgreSQL.org Subject: Re: [SQL] SQL Things References: <002e01bf6476$0ce647c0$03c6c6c6@leckhampton> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Neil, You can grant/revoke rights users have with the grant or revoke command: > GRANT select, insert, delete, update ON table_name TO user1, user2,.. > REVOKE create FROM user1 The first example grants the rights to view and update tables to user1 and user2, while the second example tells that user1 is not allowed to create a table. How to change the default behaviour, i don't know at first glance. This is basic SQL. Hope it helps, De Moudt Walter > Neil Cameron wrote: > > Hi > > Two questions. > > 1. How can I change a database object's owner using SQL type commands > ? > 2. Users seem by default to be able to create tables. Is this correct. > If so how can we remove this right. > > Neil@blueice