Re: Problem setting up new users

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem setting up new users
Дата
Msg-id 9355.1115348611@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem setting up new users  ("Michael J. Robinson" <robinson@neod.net>)
Список pgsql-admin
"Michael J. Robinson" <robinson@neod.net> writes:
> When I try to login I get the following error:

> [root@host postgressql]# psql template1 -U foo --password
> Password:
> psql: FATAL:  IDENT authentication failed for user "foo"

The prompt tells the tale: you aren't "foo", you are "root".
IDENT wants those things to be the same.  The password you
forced psql to ask you for is totally irrelevant.

Probably your best bet is to "su" from root to postgres and then create
your initial users as postgres.  You can create root as a postgres
superuser if you would prefer to do this sort of maintenance from the
root account in future.  (Whether that's a good idea is another question
--- in general, using root for more than you absolutely must isn't good
practice IMHO.)

You could also think about changing to some other auth method besides
IDENT, if you would prefer to operate with Postgres passwords instead of
who-are-you-to-the-kernel.

            regards, tom lane

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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: GetAvailableLocales aborting installation
Следующее
От: "erik"
Дата:
Сообщение: Re: GetAvailableLocales aborting installation [SOLVED]