From: | "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Bruno Wolff III <bruno(at)wolff(dot)to>, William ZHANG <uniware(at)zedware(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: CREATE USER and pg_user |
Date: | 2005-08-23 01:34:20 |
Message-ID: | 20050823013420.GP17203@pervasive.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Aug 22, 2005 at 09:19:46PM -0400, Tom Lane wrote:
> "Jim Nasby" <jnasby(at)pervasive(dot)com> writes:
> > Yes, but it doesn't really specify if you have to have a privilege in order to grant it, although reading one of the notes[1] tends to indicate that you must have a role in order to grant it. Unless I'm overlooking some part of the docs?
>
> It says
>
> You must yourself be a superuser to create a new superuser.
Sorry, I guess we're talking past each other.
My original point was that if you don't have permission to do something,
you shouldn't be able to grant permissions to do it. This applies to all
the permissions, not just superuser (though that one's obviously the
most dangerous). Granted, at this point I think the only permission this
would really matter on (other than SUPERUSER/CREATEUSER) is CREATEDB,
but that will probably change if more privleges are added. It seems we
should set the standard now that if you don't have a permission you
can't grant it, rather than wait 'til later.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com 512-569-9461
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-08-23 02:18:25 | Re: Pre-allocated free space for row updating (like PCTFREE) |
Previous Message | William ZHANG | 2005-08-23 01:26:07 | Re: CREATE USER and pg_user |