pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Fromm <Marc.Fromm@wwu.edu>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: FATAL Authentication
Date: Wed, 04 Jun 2008 16:42:29 -0400
Message-ID: <29366.1212612149@sss.pgh.pa.us> (raw)
In-Reply-To: <B0D7C0A3F35FE144A70312D086CBCA9B0509A42F@ExchMailbox2.univ.dir.wwu.edu>
References: <B0D7C0A3F35FE144A70312D086CBCA9B0509A42F@ExchMailbox2.univ.dir.wwu.edu>

Marc Fromm <Marc.Fromm@wwu.edu> writes:
> I am trying to run commands from the shell (without becoming the postgres user first), which work fine on our live server, but on our dev server I receive FATAL authentication errors.
> [root@dev tmp]$ createdb -U postgres lan_portal
> createdb: could not connect to database postgres: FATAL:  Ident authentication failed for user "postgres"

The -U option is just about entirely useless under "ident sameuser"
authentication, which apparently is what you are using.  If you like
ident auth in general, you can make it do what you want by setting
up a map file that lets (eg) root become any of a list of postgres
user names.  Or you could switch to some other auth method.  See
http://www.postgresql.org/docs/8.3/static/client-authentication.html

			regards, tom lane



view thread (2+ messages)

Message-ID: <29366.1212612149@sss.pgh.pa.us>
Permalink:  ../29366.1212612149@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29366.1212612149@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Marc.Fromm@wwu.edu
  Subject: Re: FATAL Authentication
  In-Reply-To: <29366.1212612149@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