Re: Setup for a db class

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: "Goulet, Dick" <DGoulet(at)vicr(dot)com>
Cc: Terry Letsche <terry(at)letsche(dot)net>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Setup for a db class
Date: 2004-09-14 20:46:41
Message-ID: 1095194800.21855.101.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, 2004-09-14 at 20:39, Goulet, Dick wrote:
> Terry,
>
> In pga_conf.hba you can setup to restrict access to the other databases as in:
>
> # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
> # IPv6-style local connections:
> host db1 usr1 ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust
> host db2 usr2 172.20.0.0 255.255.0.0 trust
> host db3 usr3 172.17.0.0 255.255.0.0 trust

You can also put "sameuser" as the database, to restrict it to a user of
the same name as the database.

--
Oliver Elphick olly(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
========================================
"But without faith it is impossible to please him; for
he that cometh to God must believe that he is, and
that he is a rewarder of them that diligently seek
him." Hebrews 11:6

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message R. Willmington 2004-09-15 08:33:50 VACUUM FULL achieves nothing / Postgres 7.3.2 + RedHat 7.3
Previous Message Jeff Stout 2004-09-14 19:58:34 Postgres and Funk Radius