Re: psql: FATAL: Ident authentication failed for user "postgres"
В списке pgsql-sql по дате отправления:
| От | Milen A. Radev |
|---|---|
| Тема | Re: psql: FATAL: Ident authentication failed for user "postgres" |
| Дата | |
| Msg-id | ga311h$js1$1@ger.gmane.org обсуждение исходный текст |
| Ответ на | psql: FATAL: Ident authentication failed for user "postgres" (VG <vikasraigupta@gmail.com>) |
| Список | pgsql-sql |
VG написа: > Hi, > > I have installed postgresql-serve using yum > hba.conf group and owner were postgres then i changed it to root. Why? > > when i type psql -U postgres command ( as root user) I get: > > psql: FATAL: Ident authentication failed for user "postgres" Most probably the default pg_hba.conf includes the following line: local all postgres ident Which means that you could login with the DB user "postgres" only if you are logged in already as the system user "postgres". So "su - postgres" before using psql should do the trick. Please read "Chapter 21. Client Authentication" (http://www.postgresql.org/docs/current/static/client-authentication.html) for details. -- Milen A. Radev
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера