pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Glyn Astill <glynastill@yahoo.co.uk>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Adding line to pg_hba.conf for a specific group makes superuser authentication fail in 9.0?
Date: Wed, 27 Jul 2011 21:22:29 +0100 (BST)
Message-ID: <1311798149.1639.YahooMailNeo@web26004.mail.ukl.yahoo.com> (raw)
In-Reply-To: <4E2FFB6E020000250003F81B@gw.wicourts.gov>
References: <1311784043.24356.YahooMailNeo@web26002.mail.ukl.yahoo.com>
	<10638.1311784321@sss.pgh.pa.us>
	<1311784785.5983.YahooMailNeo@web26004.mail.ukl.yahoo.com>
	<4E2FFB6E020000250003F81B@gw.wicourts.gov>

> From: Kevin Grittner <Kevin.Grittner@wicourts.gov>

>Glyn Astill <glynastill@yahoo.co.uk> wrote:
> 
>>  How can I specifically catch superusers?
> 
> Create a group (nobody?) that you don't grant to any users.  Only
> superusers will be a member of it.
> 

Ah of course, simple, thanks Kevin.

I can't help but feel that there should be something in the docs for 9.0 to specify this, since it is a behaviour difference from 8.4 and earlier.

The docs (http://www.postgresql.org/docs/9.0/interactive/auth-pg-hba-conf.html) do say:

"Recall that there is no real distinction between users and groups        in PostgreSQL; a + mark really means "match any of the roles that are directly or indirectly members        of this role", while a name without a + mark matches        only that specific role" 

Maybe the docs should be embellished to also say "since a superuser is automatically considered a member of any group, it should be taken into account that names with a + mark will affect all superusers (although this was not the case prior to 9.0)" or something along those lines.

Glyn  




view thread (6+ messages)  latest in thread

Message-ID: <1311798149.1639.YahooMailNeo@web26004.mail.ukl.yahoo.com>
Permalink:  ../1311798149.1639.YahooMailNeo@web26004.mail.ukl.yahoo.com/
Also on:    postgresql.org/message-id/1311798149.1639.YahooMailNeo@web26004.mail.ukl.yahoo.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: glynastill@yahoo.co.uk, Kevin.Grittner@wicourts.gov, tgl@sss.pgh.pa.us
  Subject: Re: Adding line to pg_hba.conf for a specific group makes superuser authentication fail in 9.0?
  In-Reply-To: <1311798149.1639.YahooMailNeo@web26004.mail.ukl.yahoo.com>

* 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