Unix Technical Forum

DROP GROUP leaves permissions a mess ...

This is a discussion on DROP GROUP leaves permissions a mess ... within the pgsql Hackers forums, part of the PostgreSQL category; --> Using an 8.0.3 database, if I do: CREATE GROUP testgrp WITH USER pgsql; GRANT ALL ON timezone TO GROUP ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 05:00 AM
Marc G. Fournier
 
Posts: n/a
Default DROP GROUP leaves permissions a mess ...


Using an 8.0.3 database, if I do:

CREATE GROUP testgrp WITH USER pgsql;
GRANT ALL ON timezone TO GROUP testgrp;
DROP GROUP testgrp;

The table permissions still contain the reference to the 'group':

public | timezone | table | {pgsql=arwdRxt/pgsql,"group 100=arwdRxt/pgsql"}

And you can't REVOKE those permissions afterwards:

ams=# REVOKE ALL ON timezone FROM GROUP testgrp;
ERROR: group "testgrp" does not exist
ams=# REVOKE ALL ON timezone FROM GROUP "100";
ERROR: group "100" does not exist

Should there not be an ERROR returned when you try and drop a user/group
that has permissions on a table in the database, to prevent this?

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 05:00 AM
Alvaro Herrera
 
Posts: n/a
Default Re: DROP GROUP leaves permissions a mess ...

On Mon, Jul 25, 2005 at 07:02:37PM -0300, Marc G. Fournier wrote:

> Should there not be an ERROR returned when you try and drop a user/group
> that has permissions on a table in the database, to prevent this?


Yes, this is a long-standing known bug and has been fixed in 8.1.

--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"La Primavera ha venido. Nadie sabe como ha sido" (A. Machado)

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 05:00 AM
Stephen Frost
 
Posts: n/a
Default Re: DROP GROUP leaves permissions a mess ...

* Marc G. Fournier (scrappy@postgresql.org) wrote:
> Should there not be an ERROR returned when you try and drop a user/group
> that has permissions on a table in the database, to prevent this?


That's exactly what the shared-dependency patch that was recently
applied to CVS HEAD is supposed to deal with, I believe...

Stephen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC5YszrzgMPqB3kigRArORAJ989xipR8QP6Ltn9pK0Iv wXVS0RrACfY70q
rohK7BzJUQeDCOBJBaqf/ko=
=orLa
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:46 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com