Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8828C475917 for ; Wed, 14 Aug 2002 18:12:07 -0400 (EDT) Received: from filtermail.webhart.net (filtermail.webhart.net [66.46.201.120]) by postgresql.org (Postfix) with ESMTP id 9C15F47583E for ; Wed, 14 Aug 2002 18:12:06 -0400 (EDT) Received: from webhart.deepnet.cx ([192.168.0.31]) by filtermail.webhart.net (8.11.6/8.11.6) with ESMTP id g7EMBj422834 for ; Wed, 14 Aug 2002 18:11:45 -0400 Message-ID: <3D5AD560.AEBD8AF8@webhart.deepnet.cx> Date: Wed, 14 Aug 2002 18:10:40 -0400 From: Kris Deugau X-Mailer: Mozilla 4.78 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: DB Access Restrictions Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-RAVMilter-Version: 8.3.3(snapshot 20020312) (filtermail.webhart.net) X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/232 X-Sequence-Number: 5346 I'm finalizing the setup to be used to host customer DBs for a domain hosting service, and I'd like to make sure I've got the access controls straight: In pg_hba.conf, I've seen and managed to figure out *most* of how access to the various DBs can be controlled. I'll be using the "password" authentication, most likely with either sameuser or all: -> db of "sameuser" *REQUIRES* that the connecting user have the same name as the database they're trying to connect to - for ANYONE using this access method -> db of "all" lets the access control slip down a level to whether a user has provided the proper password. Is there any way to simply specify a list of users for each db? I haven't been able to figure out if that's possible or not with "password" authentication. (ident is useless; all DB access except limited administrative control on my part will be via PHP across the local UNIX socket- and ident will return "apache" if it returns anything useful at all.) Platform (at least initially) will be RedHat7.0/Postgres7.0; but it will be moving to RH7.3/Postgres7.2 "Real Soon Now". (ie, as soon as the new server is put together.) -kgd -- Money is overrated.