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: NDBBJABDILOPAOOMFJHOEEEOCHAA.graham@digitalplanit.com (view raw or flat)
Thread:
Lists: pgsql-admin
I have tried entering the following as suggested: -
local        all                                               reject
host         all         127.0.0.1           255.255.255.0	   ident
sameuser

I have also tried
local        all                                               reject
host         all         127.0.0.1           255.255.255.0     trust

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

Is there something obvious I am missing????

Thanks

Graham

-----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 127.0.0.1 as ident sameuser and socket connections as
reject in pg_hba.conf.

			regards, tom lane


In response to

Responses

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-2014 The PostgreSQL Global Development Group