pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael J. Robinson <robinson@neod.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem setting up new users
Date: Thu, 05 May 2005 23:03:31 -0400
Message-ID: <9355.1115348611@sss.pgh.pa.us> (raw)
In-Reply-To: <B4DD716FB99276439D77EF08F5DAD1D741F2D4@neo-exchange.int.neod.net>
References: <B4DD716FB99276439D77EF08F5DAD1D741F2D4@neo-exchange.int.neod.net>

"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



view thread (2+ messages)

Message-ID: <9355.1115348611@sss.pgh.pa.us>
Permalink:  ../9355.1115348611@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9355.1115348611@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robinson@neod.net
  Subject: Re: Problem setting up new users
  In-Reply-To: <9355.1115348611@sss.pgh.pa.us>
  References: <B4DD716FB99276439D77EF08F5DAD1D741F2D4@neo-exchange.int.neod.net> <9355.1115348611@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox