From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Michael J(dot) Robinson" <robinson(at)neod(dot)net> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Problem setting up new users |
Date: | 2005-05-06 03:03:31 |
Message-ID: | 9355.1115348611@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
"Michael J. Robinson" <robinson(at)neod(dot)net> writes:
> When I try to login I get the following error:
> [root(at)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
From | Date | Subject | |
---|---|---|---|
Next Message | erik | 2005-05-06 08:43:41 | Re: GetAvailableLocales aborting installation [SOLVED] |
Previous Message | Magnus Hagander | 2005-05-05 21:44:34 | Re: GetAvailableLocales aborting installation |