Re: Connect to db denied for superuser inherited by group - Mailing list pgsql-admin

From Tom Lane
Subject Re: Connect to db denied for superuser inherited by group
Date
Msg-id 19470.1521211964@sss.pgh.pa.us
Whole thread Raw
In response to Re: Connect to db denied for superuser inherited by group  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Connect to db denied for superuser inherited by group  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-admin
Stephen Frost <sfrost@snowman.net> writes:
> * Michael.Dietrich@swisscom.com (Michael.Dietrich@swisscom.com) wrote:
>> 2) User without superuser privileges uses a role with superuser rights (usage confirmed with SHOW current_role.)

> Please provide more details about what this step #2 actually means.

If you mean that you did "GRANT superuserrole TO nonsuperuser", this
does not make "nonsuperuser" into a superuser; it merely allows
"nonsuperuser" to use whatever ordinary privileges might've been
granted to "superuserrole".  If you did that with the bootstrap
superuser, this would include ownership rights on all built-in
objects, so it'd still be pretty darn dangerous; but it does not
give the ability to ignore privileges for other objects.

            regards, tom lane


pgsql-admin by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Connect to db denied for superuser inherited by group
Next
From: "David G. Johnston"
Date:
Subject: Re: Connect to db denied for superuser inherited by group