pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Keith <keithcelt@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Roles and Superusers
Date: Fri, 07 Jul 2006 00:26:28 -0400
Message-ID: <16951.1152246388@sss.pgh.pa.us> (raw)
In-Reply-To: <20060707024453.7668.qmail@web51012.mail.yahoo.com>
References: <20060707024453.7668.qmail@web51012.mail.yahoo.com>

Keith <keithcelt@yahoo.com> writes:
> It seems that the 'superuser' part of my 'leads' group
> role is not functioning (code below). It appears that
> the security settings are at least partially
> transitive as I have one group role nested within the
> other and I am able to access the appropriate
> resources. The problem is that only a superuser or the
> owner of a table can drop it and even though I am
> supposed to be a superuser, I cannot drop the table!

Then you're not a superuser ;-)

I gather from your example that you are expecting superuserness to
inherit through role membership.  It doesn't, and neither do the
other "special" privileges managed via CREATE/ALTER ROLE.  It's
arguable whether this is a good policy for eg. CREATEDB, but personally
I think it's the right behavior for the superuser bit.  When you pass
out the keys to the kingdom, you want to pass 'em out one recipient
at a time, eh?

			regards, tom lane



view thread (2+ messages)

Message-ID: <16951.1152246388@sss.pgh.pa.us>
Permalink:  ../16951.1152246388@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16951.1152246388@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, keithcelt@yahoo.com
  Subject: Re: Roles and Superusers
  In-Reply-To: <16951.1152246388@sss.pgh.pa.us>
  References: <20060707024453.7668.qmail@web51012.mail.yahoo.com> <16951.1152246388@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox