| От | Tom Lane |
|---|---|
| Тема | Re: authenticating local users |
| Дата | |
| Msg-id | 2298.978157479@sss.pgh.pa.us обсуждение |
| Ответ на | authenticating local users (Chris Green <cmg@uab.edu>) |
| Список | pgsql-general |
Chris Green <cmg@uab.edu> writes:
> For local users, is there anyway to have users only be able to connect
> to the postmaster as the name associated with their current uid?
You could use ident authentication with the 'sameuser' restriction,
ie
host all 127.0.0.1 255.255.255.255 ident sameuser
You have to be running an identd daemon, and you have to tell your
users to connect to host localhost instead of the default Unix-socket
connection. (AFAIK, ident doesn't work with Unix-socket connections.)
Setting PGHOST=localhost in the user environment is a fairly painless
answer to the latter problem though.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера