From: Jon August <jon@internection.com>
To: Chris Ruprecht <chrup999@yahoo.com>
Cc: PostGreSQL Admin Group <pgsql-admin@postgresql.org>
Subject: Re: user to database restriction?
Date: Sun, 10 Feb 2002 19:22:34 -0500 (EST)
Message-ID: <Pine.LNX.4.21.0202101913530.6312-100000@www.internection.com> (raw)
In-Reply-To: <p05101217b88cbc8367d2@[192.168.0.6]>
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
> >
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jon@internection.com, chrup999@yahoo.com
Subject: Re: user to database restriction?
In-Reply-To: <Pine.LNX.4.21.0202101913530.6312-100000@www.internection.com>
References: <p05101217b88cbc8367d2@[192.168.0.6]> <Pine.LNX.4.21.0202101913530.6312-100000@www.internection.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox