Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0B2AD476672 for ; Tue, 3 Sep 2002 12:42:06 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id 8AF774765EE for ; Tue, 3 Sep 2002 12:41:39 -0400 (EDT) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa06993; 3 Sep 2002 12:41 EDT Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.9.3/8.9.3) with SMTP id MAA20252 for ; Tue, 3 Sep 2002 12:41:39 -0400 Message-ID: <002401c25368$f9374b90$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: pg_hba.conf file Date: Tue, 3 Sep 2002 12:43:03 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0021_01C25347.71E3E7A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/23 X-Sequence-Number: 5562 This is a multi-part message in MIME format. ------=_NextPart_000_0021_01C25347.71E3E7A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable My current pg_hba.conf file looks like this: local genex password pgpasswords_genex host genex 127.0.0.1 255.255.255.255 password pgpasswords= _genex local herr_lab password pgpasswords_herr_lab host herr_lab 127.0.0.1 255.255.255.255 password pgpasswo= rds_herr_lab "genex" and "herr_lab" are two separate databases which are used by two dif= ferent departments. I set my pg_hba.conf file up this way to ensure that on= ly the logins within the "pgpasswords_genex" file could access the genex da= tabase. And similarly for the herr_lab database - I only wanted user IDs wi= thin the pgpasswords_herr_lab file to access the herr_lab database. The problem here is that template1 is not mentioned and therefore commands = like dropdb and createdb are not functioning. I tried adding the following = lines: local template1 password pgpasswords_genex local template1 password pgpasswords_herr_lab The problem here is that the system seems to ignore the second line. The lo= gins within the "pgpasswords_genex" file can now create and drop databases = but the users in "pgpasswords_herr_lab" cannot.=20 I would like to set it up such that only the genex users (with db creation = permissions) can add or drop the genex database and only the herr_lab users= (with db create permissions) can add or drop the herr_lab database. Is this possible? Can I get the system to recognize both pgpasswords files = when referencing template1? Is there a better way to accomplish my goal?=20 I recall a message posted somewhat recently regarding the pg_passwd utility= . Is there some security flaw that I need to be aware of? Thanks for your help. Jodi =20 _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_0021_01C25347.71E3E7A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
My current pg_hba.conf file looks like= =20 this:
 
local       &nb= sp;=20 genex           &nbs= p;            = =20 password =20 pgpasswords_genex
host        &n= bsp;=20 genex       127.0.0.1  =20 255.255.255.255  password pgpasswords_genex
 

local       = ;=20 herr_lab           &= nbsp;           &nbs= p;=20 password =20 pgpasswords_herr_lab
host        = ;=20 herr_lab      127.0.0.1    =20 255.255.255.255  password pgpasswords_herr_lab
 
"genex" and "herr_lab" are two separate= =20 databases which are used by two different departments. I set my pg_hba.conf= file=20 up this way to ensure that only the logins within the "pgpasswords_genex" f= ile=20 could access the genex database. And similarly for the herr_lab database - = I=20 only wanted user IDs within the pgpasswords_herr_lab file to access the her= r_lab=20 database.
 
The problem here is that template1 is n= ot=20 mentioned and therefore commands like dropdb and createdb are not functioni= ng. I=20 tried adding the following lines:
 
local       &nb= sp;=20 template1           =          =20 password =20 pgpasswords_genex
local        = =20 template1           =          =20 password  pgpasswords_herr_lab
 
The problem here is that the system see= ms to=20 ignore the second line. The logins within the "pgpasswords_genex" file can = now=20 create and drop databases but the users in "pgpasswords_herr_lab" cannot.= =20
 
I would like to set it up such that onl= y the=20 genex users (with db creation permissions) can add or drop the genex databa= se=20 and only the herr_lab users (with db create permissions) can add = or=20 drop the herr_lab database.
 
Is this possible? Can I get the system = to=20 recognize both pgpasswords files when referencing template1? Is there a bet= ter=20 way to accomplish my goal? 
I recall a message posted somewhat rece= ntly=20 regarding the pg_passwd utility. Is there some security flaw that I need to= be=20 aware of?
Thanks for your help.
Jodi
 

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_0021_01C25347.71E3E7A0--