Re: Problem setting up new users - Mailing list pgsql-admin

From Tom Lane
Subject Re: Problem setting up new users
Date
Msg-id 9355.1115348611@sss.pgh.pa.us
Whole thread Raw
In response to Problem setting up new users  ("Michael J. Robinson" <robinson@neod.net>)
List 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 by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: GetAvailableLocales aborting installation
Next
From: "erik"
Date:
Subject: Re: GetAvailableLocales aborting installation [SOLVED]