Received: from www.internection.com (cerberus.internection.com [208.226.79.42]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1B0MWE77662 for ; Sun, 10 Feb 2002 19:22:32 -0500 (EST) (envelope-from jon@internection.com) Date: Sun, 10 Feb 2002 19:22:34 -0500 (EST) From: Jon August To: Chris Ruprecht cc: PostGreSQL Admin Group Subject: Re: user to database restriction? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200202/90 X-Sequence-Number: 3249 That seems like a lot of work. . . and could become easily outdated. No? How about in pg_hba.conf? There's no way to say only user xyz can connect to database abc? I tried something like this in my pg_hba.conf, but now nobody can connect to it. local all password postgres host all xxx.xxx.xxx.xxx 255.255.255.255 password postgres local shopdb password mark host shopdb xxx.xxx.xxx.xxx 255.255.255.255 password mark I was hoping this config would permit user "postgres" to connect to any database, but limit user "mark" to shopdb. Maybe I'm missing something, but isn't this a serious security problem for postgres installations used by many people - like in an ISP environment? -Jon On Sun, 10 Feb 2002, Chris Ruprecht wrote: > Jon, > > the only way I can think of doing this is by revoking the user's > rights to the tables of the databases they have no business in. > > I know this is not exactly the answer you're looking for ... > > Best regards, > Chris > > At 17:54 -0500 02/10/2002, Jon August wrote: > >Can I restrict a user to a single database? It seems like any user can > >connect to any database. . . > > > > -Jon > >