X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5C5C5329EE0 for ; Tue, 14 Sep 2004 21:46:52 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31136-01 for ; Tue, 14 Sep 2004 20:46:49 +0000 (GMT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id A3C98329ED9 for ; Tue, 14 Sep 2004 21:46:49 +0100 (BST) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 1C7KCO-000BHE-0X; Tue, 14 Sep 2004 20:46:48 +0000 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.34) id 1C7KCH-0001cj-4O; Tue, 14 Sep 2004 21:46:41 +0100 Subject: Re: Setup for a db class From: Oliver Elphick Reply-To: olly@lfix.co.uk To: "Goulet, Dick" Cc: Terry Letsche , pgsql-admin@postgresql.org In-Reply-To: <4001DEAF7DF9BD498B58B45051FBEA650146C71A@25exch1.vicorpower.vicr.com> References: <4001DEAF7DF9BD498B58B45051FBEA650146C71A@25exch1.vicorpower.vicr.com> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1095194800.21855.101.camel@linda> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 14 Sep 2004 21:46:41 +0100 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-MailScanner-From: olly@lfix.co.uk X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/132 X-Sequence-Number: 14835 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@lfix.co.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