pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Sayer <nsayer@quack.kfu.com>
To: sszabo@megazone23.bigpanda.com
Cc: nsayer@quack.kfu.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems with user-level security
Date: Wed, 7 Nov 2001 09:50:01 -0800 (PST)
Message-ID: <3154.66.126.254.34.1005155401.squirrel@medusa.kfu.com> (raw)
In-Reply-To: <20011107090246.N49204-100000@megazone23.bigpanda.com>
References: <20011107090246.N49204-100000@megazone23.bigpanda.com>

Stephan Szabo wrote:
> On Tue, 6 Nov 2001, Nick Sayer wrote:
[...]
>> What I *really* want is for an extra column to be added to pg_hba.conf
>> to specify the user of interest. Like this:
>>
>> all     local sameuser password
>> backups local all      password
>> pgsql   local all      password
>>
>> Does this make any sense? Is there some way to achieve this I am
>> missing? The only way I can do backups at the moment is introduce a
>> race condition so that anyone can connect to any database they like at
>> certain times of day. Not good.
>
> If you're using password, couldn't you do this by specifying the file
> to look up the passwords in (the optional last parameter) on the local
> all line and then only put the backups/pgsql password in it.


That solution works perfectly. I now have

local sameuser password
local all password pg_superusers

and have added the backup user to pg_superusers using pg_passwd. I am a
happy camper! Especially nice is that I can empty out the pg_shadow
password for the superusers.






view thread (7+ messages)  latest in thread

Message-ID: <3154.66.126.254.34.1005155401.squirrel@medusa.kfu.com>
Permalink:  ../3154.66.126.254.34.1005155401.squirrel@medusa.kfu.com/
Also on:    postgresql.org/message-id/3154.66.126.254.34.1005155401.squirrel@medusa.kfu.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 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: nsayer@quack.kfu.com, sszabo@megazone23.bigpanda.com
  Subject: Re: Problems with user-level security
  In-Reply-To: <3154.66.126.254.34.1005155401.squirrel@medusa.kfu.com>
  References: <20011107090246.N49204-100000@megazone23.bigpanda.com> <3154.66.126.254.34.1005155401.squirrel@medusa.kfu.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