From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gavin M. Roy <gmr@readysetnet.com>
Cc: pgsql list <pgsql-admin@postgresql.org>
Subject: Re: GRANT & DROP
Date: Mon, 08 Jan 2001 17:22:53 -0500
Message-ID: <19570.978992573@sss.pgh.pa.us> (raw)
In-Reply-To: <3A5A1E67.1A71B9C7@readysetnet.com>
References: <3A5A1E67.1A71B9C7@readysetnet.com>
"Gavin M. Roy" <gmr@readysetnet.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, gmr@readysetnet.com
Subject: Re: GRANT & DROP
In-Reply-To: <19570.978992573@sss.pgh.pa.us>
References: <3A5A1E67.1A71B9C7@readysetnet.com> <19570.978992573@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox