pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wei Weng <wweng@kencast.com>
To: pgsql-sql@postgresql.org
Subject: What is wrong with this identification configuration?
Date: Tue, 11 Feb 2003 18:28:38 -0500 (EST)
Message-ID: <Pine.LNX.4.44.0302111825580.4868-100000@localhost.localdomain> (raw)

This is the idenfication setup in my /var/lib/pgsql/data/pg_hba.conf

local   all                                             trust
host    all     127.0.0.1       255.255.255.255         trust

This is supposed to authenticate any user to be able to access my 
postgresql system any time, no?

But this is what happened ( I tried to "log in" the template1 database 
with root, postgres system account and my own user account)

[root@Monet wweng]# su postgres
bash-2.05a$ psql template1
psql: FATAL 1:  No pg_hba.conf entry for host localhost, user postgres,
database template1

bash-2.05a$ exit
[root@Monet wweng]# psql template1

psql: FATAL 1:  No pg_hba.conf entry for host localhost, user root, 
database template1

[root@Monet wweng]# exit
[wweng@Monet wweng]$ psql template1
psql: FATAL 1:  No pg_hba.conf entry for host localhost, user wweng, 
database template1

Why is this happening? And how can I log in the template1 database?

I am using postgresql 7.2.3 on Redhat 7.3.

bash-2.05a$ rpm -qa | grep postgresql
postgresql-7.2.3-5.73
postgresql-libs-7.2.3-5.73
postgresql-server-7.2.3-5.73
postgresql-devel-7.2.3-5.73

Thanks a lot!


Wei






view thread (4+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0302111825580.4868-100000@localhost.localdomain>
Permalink:  ../Pine.LNX.4.44.0302111825580.4868-100000@localhost.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0302111825580.4868-100000@localhost.localdomain

 · 

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-sql@postgresql.org
  Cc: wweng@kencast.com
  Subject: Re: What is wrong with this identification configuration?
  In-Reply-To: <Pine.LNX.4.44.0302111825580.4868-100000@localhost.localdomain>

* 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