Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f08MN2B40811 for ; Mon, 8 Jan 2001 17:23:02 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f08MMrJ19573; Mon, 8 Jan 2001 17:22:53 -0500 (EST) To: "Gavin M. Roy" cc: pgsql list Subject: Re: GRANT & DROP In-reply-to: <3A5A1E67.1A71B9C7@readysetnet.com> References: <3A5A1E67.1A71B9C7@readysetnet.com> Comments: In-reply-to "Gavin M. Roy" message dated "Mon, 08 Jan 2001 12:09:12 -0800" Date: Mon, 08 Jan 2001 17:22:53 -0500 Message-ID: <19570.978992573@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200101/37 X-Sequence-Number: 408 "Gavin M. Roy" writes: > I am looking at the grant command and see it covers alot of > important things, but the one I am most interested is DROP TABLE and I > don't see it, nor ALTER. Does DELETE cover DROP as well? I believe DROP and ALTER rights are determined by ownership, nothing else. Ditto rights to do GRANT/REVOKE. (The permissions capabilities in Postgres badly need redesign, since they're nowhere close to what the SQL spec calls for, but that's what we have at the moment.) My two cents: any table that you want to be reasonably secure should be owned by an "admin" sort of user that is not used for normal database operations. The admin user should grant appropriate permissions to the userid(s) that are used for routine work. It's probably good if the admin user is not the superuser, too. The routine-work users had better not be superuser, else they will bypass all the permissions checks anyway. regards, tom lane