pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dronamraju Rajesh <drajesh80@yahoo.com>
To: Jaume Teixi <teixi@6tems.com>
To: psql-admin <pgsql-admin@postgresql.org>
Subject: Re: cannot connect using terminal nor pgaccess
Date: Mon, 21 May 2001 23:50:12 -0700 (PDT)
Message-ID: <20010522065012.4338.qmail@web9601.mail.yahoo.com> (raw)
In-Reply-To: <20010521161919.6dd07b95.teixi@6tems.com>

also try using -i option along with other options.
else all seems to be fine

regards,
Rajesh.

--- Jaume Teixi <teixi@6tems.com> wrote:
> $ 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
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
>     (send "unregister YourEmailAddressHere" to
majordomo@postgresql.org)


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



view thread (8+ messages)  latest in thread

Message-ID: <20010522065012.4338.qmail@web9601.mail.yahoo.com>
Permalink:  ../20010522065012.4338.qmail@web9601.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010522065012.4338.qmail@web9601.mail.yahoo.com

 · 

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: drajesh80@yahoo.com, teixi@6tems.com
  Subject: Re: cannot connect using terminal nor pgaccess
  In-Reply-To: <20010522065012.4338.qmail@web9601.mail.yahoo.com>
  References: <20010521161919.6dd07b95.teixi@6tems.com> <20010522065012.4338.qmail@web9601.mail.yahoo.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