Re: Ident authentication failed without su to user

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Ident authentication failed without su to user
Дата
Msg-id 43F53B5B.1070005@gmail.com
обсуждение исходный текст
Ответ на Ident authentication failed without su to user  (jim_bowery@hotmail.com)
Ответы Re: Ident authentication failed without su to user  (jim_bowery@hotmail.com)
Список pgsql-general
jim_bowery@hotmail.com wrote:
> I've created a database "bugs" and a user "bugs" (postgresql user as
> well as unix) and even made user "bugs" not require a password but I
> still get this:
> [root@marathon bugzilla-2.20]# psql bugs bugs
> psql: FATAL:  Ident authentication failed for user "bugs"
> ...
> but if I
> [root@marathon bugzilla-2.20]# su bugs
> [bugs@marathon bugzilla-2.20]$ psql bugs bugs
> Welcome to psql 8.0.7, the PostgreSQL interactive terminal.
>
> Type:  \copyright for distribution terms
>      \h for help with SQL commands
>      \? for help with psql commands
>      \g or terminate with semicolon to execute query
>      \q to quit
>
> bugs=>
>
> it works.  any ideas why?


Probably because of your pg_hba.conf file. The first option is most
likely 'ident'.

You probably want it as 'md5' (the file itself has tons of documentation).

Order does matter in that file - it will use the first rule that applies.

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

Предыдущее
От: Douglas McNaught
Дата:
Сообщение: Re: Ident authentication failed without su to user
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: How do I use the backend APIs