pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeduser to database restriction?
7+ messages / 4 participants
[nested] [flat]
* user to database restriction?
@ 2002-02-10 22:54 Jon August <jon@internection.com>
0 siblings, 2 replies; 7+ messages in thread
From: Jon August @ 2002-02-10 22:54 UTC (permalink / raw)
To: pgsql-admin
Can I restrict a user to a single database? It seems like any user can
connect to any database. . .
-Jon
---
Voice: (973) 560-9095 | Internection - Electronic Commerce, Internet
Cell : (973) 801-6071 | Consulting and Grade A Web Hosting Since 1995.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: user to database restriction?
@ 2002-02-11 00:12 Chris Ruprecht <chrup999@yahoo.com>
parent: Jon August <jon@internection.com>
1 sibling, 1 reply; 7+ messages in thread
From: Chris Ruprecht @ 2002-02-11 00:12 UTC (permalink / raw)
To: Jon August <jon@internection.com>; +Cc: pgsql-admin
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
>
>---
>Voice: (973) 560-9095 | Internection - Electronic Commerce, Internet
>Cell : (973) 801-6071 | Consulting and Grade A Web Hosting Since 1995.
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html
--
Chris Ruprecht
Network grunt and bit pusher extraordinaíre
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: user to database restriction?
@ 2002-02-11 00:22 Jon August <jon@internection.com>
parent: Chris Ruprecht <chrup999@yahoo.com>
0 siblings, 1 reply; 7+ messages in thread
From: Jon August @ 2002-02-11 00:22 UTC (permalink / raw)
To: Chris Ruprecht <chrup999@yahoo.com>; +Cc: pgsql-admin
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
> >
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: user to database restriction?
@ 2002-02-11 01:03 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: Jon August <jon@internection.com>
0 siblings, 1 reply; 7+ messages in thread
From: Stephan Szabo @ 2002-02-11 01:03 UTC (permalink / raw)
To: Jon August <jon@internection.com>; +Cc: Chris Ruprecht <chrup999@yahoo.com>; pgsql-admin
On Sun, 10 Feb 2002, Jon August wrote:
>
> 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.
The final argument goes to an external file in $PGDATA that lists users
(and optionally passwords) for the users that are allowed into the db.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: user to database restriction?
@ 2002-02-11 01:14 Jon August <jon@internection.com>
parent: Stephan Szabo <sszabo@megazone23.bigpanda.com>
0 siblings, 1 reply; 7+ messages in thread
From: Jon August @ 2002-02-11 01:14 UTC (permalink / raw)
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: Chris Ruprecht <chrup999@yahoo.com>; pgsql-admin
Ok, it looks like the final argument is used to set up realtionships
between remote unix users to pg users. So wouldn't that mean that
ultimately the user would be able to view any database anyway since
the pg user can view any database? (aside from revoking privs at the
table level)
Is there any means of user to database access restriction?
On Sun, 10 Feb 2002, Stephan Szabo wrote:
> > 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
>
> The final argument goes to an external file in $PGDATA that lists users
> (and optionally passwords) for the users that are allowed into the db.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: user to database restriction?
@ 2002-02-11 02:34 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: Jon August <jon@internection.com>
0 siblings, 0 replies; 7+ messages in thread
From: Stephan Szabo @ 2002-02-11 02:34 UTC (permalink / raw)
To: Jon August <jon@internection.com>; +Cc: Chris Ruprecht <chrup999@yahoo.com>; pgsql-admin
On Sun, 10 Feb 2002, Jon August wrote:
>
> Ok, it looks like the final argument is used to set up realtionships
> between remote unix users to pg users. So wouldn't that mean that
> ultimately the user would be able to view any database anyway since
> the pg user can view any database? (aside from revoking privs at the
> table level)
>
> Is there any means of user to database access restriction?
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: user to database restriction?
@ 2002-02-11 15:56 Naomi Walker <nwalker@eldocomp.com>
parent: Jon August <jon@internection.com>
1 sibling, 0 replies; 7+ messages in thread
From: Naomi Walker @ 2002-02-11 15:56 UTC (permalink / raw)
To: Chris Ruprecht <chrup999@yahoo.com>; Jon August <jon@internection.com>; +Cc: pgsql-admin
What about through pg_hba.conf? We've set it up so to connect to a
database, you must be in pg_pwd (through pg_passwd), and know the
passwd. I will mention, that pg_pwd should not be clear text.
Any plan to encrypt it?
At 06:12 PM 2/10/02 -0600, 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
>>
>>---
>>Voice: (973) 560-9095 | Internection - Electronic Commerce, Internet
>>Cell : (973) 801-6071 | Consulting and Grade A Web Hosting Since 1995.
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 5: Have you checked our extensive FAQ?
>>
>>http://www.postgresql.org/users-lounge/docs/faq.html
>
>
>--
>Chris Ruprecht
>Network grunt and bit pusher extraordinaíre
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100 ext 242
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2002-02-11 15:56 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-10 22:54 user to database restriction? Jon August <jon@internection.com>
2002-02-11 00:12 ` Chris Ruprecht <chrup999@yahoo.com>
2002-02-11 00:22 ` Jon August <jon@internection.com>
2002-02-11 01:03 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2002-02-11 01:14 ` Jon August <jon@internection.com>
2002-02-11 02:34 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2002-02-11 15:56 ` Naomi Walker <nwalker@eldocomp.com>
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