pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Geoff Winkless <pgsqladmin@geoff.dj>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: setting up pg_ident for peer auth with unix groups
Date: Thu, 30 Jan 2020 11:15:48 -0500
Message-ID: <21561.1580400948@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEzk6ff_b7s9NDgLrYrOZ59UsFp3ERNRTx54UGD6jQFVQcVqWg@mail.gmail.com>
References: <CAEzk6ff_b7s9NDgLrYrOZ59UsFp3ERNRTx54UGD6jQFVQcVqWg@mail.gmail.com>

Geoff Winkless <pgsqladmin@geoff.dj> writes:
> Not sure if I'm missing something obvious but I can't see a way to set up
> pg_ident with unix groups in the username maps.
> https://www.postgresql.org/docs/12/auth-username-maps.html
> Is it possible or do I have to set up one entry for every user?

If your goal is "allow any local user who is a member of group X
to connect", you might be able to do it by setting restrictive
filesystem privileges on the postmaster's Unix-socket file.  This
has some disadvantages --- notably, there's no way to override and
let selected non-group-members in too --- but it's worth considering.
See the unix_socket_group and unix_socket_permissions GUCs.

			regards, tom lane





view thread (3+ messages)

Message-ID: <21561.1580400948@sss.pgh.pa.us>
Permalink:  ../21561.1580400948@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21561.1580400948@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsqladmin@geoff.dj, pgsql-admin@lists.postgresql.org
  Subject: Re: setting up pg_ident for peer auth with unix groups
  In-Reply-To: <21561.1580400948@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