pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Jodi Kanter <jkanter@virginia.edu>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: two databases
Date: Tue, 28 May 2002 17:13:38 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGMEJNFAAA.nickf@ontko.com> (raw)
In-Reply-To: <016e01c20683$87b16eb0$de138f80@virginia.edu>

Jodi-

I've not actually tried this, but here is how I think you could set up a
division such as you describe:

Create two password files with pg_passwd.

Edit pg_hba.conf to specify a different password file for each database:

local database1 password passwords1
local database2 password passwords2

The lines above assume that you've got two databases, "database1" &
"database2", with two corresponding password files, "password1" &
"password2". It also assumes that your database is on the same machine as
the users. If the database is on a different machine, you'd want to add the
IP address(es) & mask & change local to host.

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/



-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi Kanter
Sent: Tuesday, May 28, 2002 3:09 PM
To: Postgres Admin List
Subject: [ADMIN] two databases


I'd like to set up two databases on one server but need information on
securing them separately. The databases will be accessed by different
groups, who cannot have access to the data on the other database. I assume
that this can be done using Postgres 7.1.3. Am I correct? The database that
I currently have setup is enforcing sign-on using the pg_passwd utility.
Would I just need a separate pg_passwd file for the new database? Do I need
to create a new database cluster area?
Can anyone point to some documentation on the best way to set this up?
suggestions?
Thank you
Jodi
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu









view thread (3+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGMEJNFAAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGMEJNFAAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGMEJNFAAA.nickf@ontko.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: nickf@ontko.com, jkanter@virginia.edu
  Subject: Re: two databases
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGMEJNFAAA.nickf@ontko.com>
  References: <016e01c20683$87b16eb0$de138f80@virginia.edu> <NEBBLAAHGLEEPCGOBHDGMEJNFAAA.nickf@ontko.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