Re: [ADMIN] Regarding access to a user

Поиск
Список
Период
Сортировка
От Shashwat_Nigam
Тема Re: [ADMIN] Regarding access to a user
Дата
Msg-id B3F7216EEA3D5D49A0841DFC6843C33AB9BEEE@HSTMBX004.corp.satyam.ad
обсуждение исходный текст
Ответ на Re: [ADMIN] Regarding access to a user  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: [ADMIN] Regarding access to a user  (Tomasz Ostrowski <tometzky@batory.org.pl>)
Re: [ADMIN] Regarding access to a user  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
Dear Kevin
Thanks for the help. But still the user is able to see all the databases. I defined something like this

# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
host    HMRI_database   hmri    127.0.0.1/32          md5


in the above case hmri is user and HMRI_database. But still when user is log in as 'hmri' it is able to access all the
databases.
Please provide a solution for the same.

Thanks & Regards,
Shashwat Nigam
| Software Engineer | Geographical Information System
Satyam Computer Services Limited, Hyderabad | MOBILE: +919951467324 |

-----Original Message-----
From: Kevin Grittner [mailto:Kevin.Grittner@wicourts.gov]
Sent: Wednesday, August 20, 2008 6:41 PM
To: pgsql-admin@postgresql.org; Shashwat_Nigam
Cc: pgsql-general@postgresql.org; pgsql-sql@postgresql.org
Subject: Re: [ADMIN] Regarding access to a user

>>> 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


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain
materialthat is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distributionor forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the
intendedrecipient, please contact the sender by email and delete all copies; your cooperation in this regard is
appreciated.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tomasz Ostrowski
Дата:
Сообщение: Re: Single character bitfields
Следующее
От: Shashwat_Nigam
Дата:
Сообщение: Re: [ADMIN] Regarding access to a user