dbTalk Databases Forums  

[BUGS] BUG #1161: User permissions are kept, even if user is dropped

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1161: User permissions are kept, even if user is dropped in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1161: User permissions are kept, even if user is dropped - 06-07-2004 , 03:14 PM







The following bug has been logged online:

Bug reference: 1161
Logged by: Martin

Email address: martin (AT) 4finger (DOT) net

PostgreSQL version: 7.4

Operating system: Linux

Description: User permissions are kept, even if user is dropped

Details:

Hi,

dropping and creating a user will keep the *old* permission on objects:

The following statements will grant access to the user
foe:

create user friend;
create table secret (passwd char(30));
grant all on secret to friend;
\dp secret;
drop user friend;
-- The permissions are still existing
-- (on a numeric user-id)
\dp secret;
create user foe;
-- The user foe "inherits" the old permissions
\dp secret;

This is not what I would have expected. If this behaviour is valid, there
should be a warning in the documentation, that creating a user may inherit
some "dangling" permissions.

Best regards,
Martin



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.