Skip site navigation (1) Skip section navigation (2)

RE: pg_hba.conf question

From: "Graham Vickrage" <graham(at)digitalplanit(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Postgres Admin" <pgsql-admin(at)postgresql(dot)org>
Subject: RE: pg_hba.conf question
Date: 2001-01-29 18:13:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
I have tried entering the following as suggested: -
local        all                                               reject
host         all 	   ident

I have also tried
local        all                                               reject
host         all      trust

After trying the usual command %psql dbname to connect I keep getting the
No pg_hba.conf entry for host localhost, user postgres, database dbname

Is there something obvious I am missing????



-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: 29 January 2001 15:08
To: Graham Vickrage
Cc: Postgres Admin
Subject: Re: [ADMIN] pg_hba.conf question

"Graham Vickrage" <graham(at)digitalplanit(dot)com> writes:
> I noticed that you can't use the 'ident sameuser' with local unix sockets,
> what is the method of getting round this as I cant use trust for this
> database?

ident only works with TCP sockets.  You could require people to connect
to host localhost, ie, use a local TCP connection instead of a Unix
socket.  Set up as ident sameuser and socket connections as
reject in pg_hba.conf.

			regards, tom lane

In response to


pgsql-admin by date

Next:From: Tom LaneDate: 2001-01-29 18:26:53
Subject: Re: pg_hba.conf question
Previous:From: Tom LaneDate: 2001-01-29 17:20:13
Subject: Re: Create index problem ( _bt_sort )

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group