Re: What's wrong with this identification configuration?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wei Weng <wweng(at)cs(dot)columbia(dot)edu>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: What's wrong with this identification configuration?
Date: 2003-02-13 05:22:30
Message-ID: 10692.1045113750@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Wei Weng <wweng(at)cs(dot)columbia(dot)edu> writes:
> 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?

Any local user, yes.

> 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

Did you recently change the pg_hba.conf file? If so, maybe you forgot
to SIGHUP the postmaster to get it to re-read the file. Otherwise, my
only thought is that you aren't talking to the same postmaster you
thought you were ... that pg_hba.conf should definitely let in any
local connection ...

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2003-02-13 05:22:45 Re: dblink question please
Previous Message Frankie Lam 2003-02-13 04:32:54 Re: dblink question please