Re: [ADMIN] Regarding access to a user - Mailing list pgsql-general

From Kevin Grittner
Subject Re: [ADMIN] Regarding access to a user
Date
Msg-id 48ABD192.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to Regarding access to a user  (Shashwat_Nigam <Shashwat_Nigam@satyam.com>)
Responses Re: [ADMIN] Regarding access to a user  (Shashwat_Nigam <Shashwat_Nigam@satyam.com>)
List pgsql-general
>>> Shashwat_Nigam <Shashwat_Nigam@satyam.com> wrote:

> Now what I want is to set privilege that whenever the user log in as
Us
> he can only see database Y, none other than that. The user Us could
have all
> rights for database Y but can't  go for any other database (X or Z).

The first thing you need to do is configure "host based
authentication":

http://www.postgresql.org/docs/8.3/interactive/auth-pg-hba-conf.html

Among other things, this allows you to restrict which users can
connect to which databases.

-Kevin

pgsql-general by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: SELECT query experts, anyone?
Next
From: Craig Ringer
Date:
Subject: Re: Fwd: Restarting with pg_ctl, users, and passwords.