From: Jaume Teixi <teixi@6tems.com>
To: psql-admin <pgsql-admin@postgresql.org>
Subject: cannot connect using terminal nor pgaccess
Date: Mon, 21 May 2001 16:19:19 +0200
Message-ID: <20010521161919.6dd07b95.teixi@6tems.com> (raw)
$ psql -d template1 -U postgres
psql: Peer authentication failed for user 'postgres'
$ psql -d template1 -U postgres -h localhost -p 5432
psql: IDENT authentication failed for user 'postgres'
$ grep -v ^# /etc/postgresql/pg_hba.conf | grep -i sameuser
local all peer sameuser
host all 127.0.0.1 255.255.255.0 ident sameuser
$ su - postgres -- psql template1
Password:
Welcome to psql, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit
template1=# select postgres from pg_user;
usename | usesysid | usecreatedb | usetrace | usesuper | usecatupd |
passwd | valuntil
-------------+----------+-------------+----------+----------+-----------+----------+----------
postgres | 31 | t | t | t | t |
******** |
what I am missing in this case ?
thanks!
--
Jaume Teixi
CTO
6TEMS - Ducform, SA
http://www.6tems.com
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: teixi@6tems.com
Subject: Re: cannot connect using terminal nor pgaccess
In-Reply-To: <20010521161919.6dd07b95.teixi@6tems.com>
References: <20010521161919.6dd07b95.teixi@6tems.com>
* 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