What's wrong with this identification configuration?

From: Wei Weng <wweng(at)cs(dot)columbia(dot)edu>
To: pgsql-sql(at)postgresql(dot)org
Subject: What's wrong with this identification configuration?
Date: 2003-02-11 21:26:01
Message-ID: 200302111626.01386.wweng@cs.columbia.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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:

[root(at)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(at)Monet wweng]# psql template1
psql: FATAL 1: No pg_hba.conf entry for host localhost, user root, database
template1

[root(at)Monet wweng]# exit
[wweng(at)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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message James Cooper 2003-02-11 22:26:47 anal about my syntax
Previous Message Johannes Lochmann 2003-02-11 18:04:14 Re: constrains questios ..