pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jared Sulem <jsulem@sulem.freeserve.co.uk>
To: pgsql-admin@postgresql.org
Subject: Re: Restricting user access to databases
Date: Tue, 24 Apr 2001 14:23:44 +0000
Message-ID: <3AE58C70.2040503@sulem.freeserve.co.uk> (raw)
References: <3AE4CB56.6060100@sulem.freeserve.co.uk>

Jared Sulem wrote:

> Is there anyway to make PostgreSQL automatically only grant access to 
> databases by their owners, and preferably database superusers, rather 
> than making lots of pg_hba.conf entries and password files?

Just had an idea.  Another token could be added to the pg_hba.conf file: 
'owner'.  Then the line:

host 
all 
192.168.3.0 
255.255.255.0 
password owner

Would only allow users that owned the database they were trying to 
access to login.  'owner' being like a virtual file containing only the 
owner's name of the database, that the user is trying to access.

(Or is there already a way to easily do this?)

Jared






view thread (4+ messages)  latest in thread

Message-ID: <3AE58C70.2040503@sulem.freeserve.co.uk>
Permalink:  ../3AE58C70.2040503@sulem.freeserve.co.uk/
Also on:    postgresql.org/message-id/3AE58C70.2040503@sulem.freeserve.co.uk

 · 

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: jsulem@sulem.freeserve.co.uk
  Subject: Re: Restricting user access to databases
  In-Reply-To: <3AE58C70.2040503@sulem.freeserve.co.uk>
  References: <3AE4CB56.6060100@sulem.freeserve.co.uk> <3AE58C70.2040503@sulem.freeserve.co.uk>

* 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