pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Rogers <temp6453@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: FINAL: Multi-User PostgreSQL usage SECURITY
Date: Fri, 07 Sep 2001 19:05:46 -0400
Message-ID: <11012.999903946@sss.pgh.pa.us> (raw)
In-Reply-To: <OE658VnurbAMeMfHUye00004188@hotmail.com>
References: <OE658VnurbAMeMfHUye00004188@hotmail.com>

"Mike Rogers" <temp6453@hotmail.com> writes:
>     I have tried chaning pg_hba.conf to add the database field to the user,
> but that doesn't seem to help at all.

Make the database field "sameuser", and then the line only allows
connection to one's own database.  You will need an escape hatch to
allow you as superuser to get into everyone's db (else you can't run
pg_dumpall).  The escape hatch should be a second line in pg_hba.conf
with a tighter authorization method (eg, a secondary password file
with an entry only for you).

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <11012.999903946@sss.pgh.pa.us>
Permalink:  ../11012.999903946@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11012.999903946@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, temp6453@hotmail.com
  Subject: Re: FINAL: Multi-User PostgreSQL usage SECURITY
  In-Reply-To: <11012.999903946@sss.pgh.pa.us>
  References: <OE658VnurbAMeMfHUye00004188@hotmail.com> <11012.999903946@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