pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
GRANT & DROP
3+ messages / 3 participants
[nested] [flat]

* GRANT & DROP
@ 2001-01-08 20:09 Gavin M. Roy <gmr@readysetnet.com>
  2001-01-08 22:22 ` Re: GRANT & DROP Tom Lane <tgl@sss.pgh.pa.us>
  2001-01-08 23:20 ` Re: GRANT & DROP Anthony E . Greene <agreene@pobox.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Gavin M. Roy @ 2001-01-08 20:09 UTC (permalink / raw)
  To: pgsql-admin

I recently suffered the pains of not having good security on a database
when a developer dropped a production transaction payment table.  Thus
now I am paying attention to what I should have before which is database
security.  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?  Anyone have
experience here?

TIA,

Gavin




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: GRANT & DROP
  2001-01-08 20:09 GRANT & DROP Gavin M. Roy <gmr@readysetnet.com>
@ 2001-01-08 22:22 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2001-01-08 22:22 UTC (permalink / raw)
  To: Gavin M. Roy <gmr@readysetnet.com>; +Cc: pgsql-admin

"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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: GRANT & DROP
  2001-01-08 20:09 GRANT & DROP Gavin M. Roy <gmr@readysetnet.com>
@ 2001-01-08 23:20 ` Anthony E . Greene <agreene@pobox.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Anthony E . Greene @ 2001-01-08 23:20 UTC (permalink / raw)
  To: pgsql-admin

On Mon, 08 Jan 2001 15:09:12 Gavin M. Roy wrote:
>I recently suffered the pains of not having good security on a database
>when a developer dropped a production transaction payment table.  Thus
>now I am paying attention to what I should have before which is database
>security.  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?  Anyone have
>experience here?

On my Linux system, "man l drop" displays the man page for the DROP command,
with references to specific variants of the command. 

I don't know if the latest versions are different but in 6.5.3 anyone can
drop a table, even if they don't have any permissions on the rows in that
table.

Tony
-- 
Anthony E. Greene <agreene@pobox.com> <http://www.pobox.com/~agreene/;
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/;



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-01-08 23:20 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-08 20:09 GRANT & DROP Gavin M. Roy <gmr@readysetnet.com>
2001-01-08 22:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-01-08 23:20 ` Anthony E . Greene <agreene@pobox.com>

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