dbTalk Databases Forums  

Re: CATALOG/NOCATALOG for new users

comp.databases.postgresql.patches comp.databases.postgresql.patches


Discuss Re: CATALOG/NOCATALOG for new users in the comp.databases.postgresql.patches forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: CATALOG/NOCATALOG for new users - 12-24-2003 , 09:21 AM






Christopher Kings-Lynne <chriskl (AT) familyhealth (DOT) com.au> writes:
Quote:
1. Should we only allow users who currently hold the catalog perm to grant
it to others? I think yes, since otherwise a regular superuser can create
themselves another account with the catalog priv.
That brings up the whole business of just how super is a superuser,
and does it even make sense to try to design a "not quite superuser"
protection state. I'm not convinced that the usecatupd flag is so well
thought out that we should expose it for general use without some
consideration of alternative designs.

As an example, it might make more sense to create a separate flag bit
that simply grants the ability to add and delete users (non-superusers,
presumably), with none of the other attributes of a superuser. If I
recall your original concern properly, this would be a safer facility
for what you wanted to accomplish.

Quote:
3. Upgrading from previous postgres will not give their old superusers
back their catalog privilege, unless they dump with 7.5's pg_dump.
Only if you make it default to NOCATALOG, which is highly debatable in
my mind, since it is non-backwards-compatible.

regards, tom lane

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



Reply With Quote
  #2  
Old   
Peter Eisentraut
 
Posts: n/a

Default Re: CATALOG/NOCATALOG for new users - 02-02-2004 , 08:21 AM






Tom Lane wrote:
Quote:
As an example, it might make more sense to create a separate flag bit
that simply grants the ability to add and delete users
(non-superusers, presumably), with none of the other attributes of a
superuser. If I recall your original concern properly, this would be
a safer facility for what you wanted to accomplish.
I agree, this would be a more useful way to slice it up. Or maybe
someone wants to implement the SQL equivalent of "sudo".


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



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 - 2013, Jelsoft Enterprises Ltd.