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

Re: Socket & TCP connections

From: Nilesh Govindarajan <lists(at)itech7(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Socket & TCP connections
Date: 2010-03-29 01:17:32
Message-ID: 4BAFFFAC.9050505@itech7.com (view raw or flat)
Thread:
Lists: pgsql-admin
On 03/29/2010 02:51 AM, Guillaume Lelarge wrote:
> Le 28/03/2010 19:11, Nilesh Govindarajan a écrit :
>> [...]
>> I'm trying to setup PostgreSQL so that, it will not ask password when
>> connected locally (socket) whereas it will ask when connected using
>> TCP/IP. This should apply ONLY to root account. But this is not working -
>>
>> local all root trust
>> local all all md5
>> # IPv4 local connections:
>> #host all root 127.0.0.1/32 trust
>> #host all root ::1/128 trust
>> host all all 127.0.0.1/32 md5
>> host all all ::1/128 md5
>>
>> I cannot give passwordless access to TCP/IP because then it will become
>> a big security hole using PhpPgAdmin exposed to the public.
>>
>
> Could you be more specific on what's not working? the exact error
> message would be a great help. BTW, your settings are good for local
> access, but you only allow localhost TCP/IP access.
>
>

There's no error message as such. It doesn't do what is expected - 
should not ask passwords for localhost.

If I connect as psql -U root -d postgres -h localhost, it still asks me 
for password.

-- 
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

In response to

pgsql-admin by date

Next:From: Nilesh GovindarajanDate: 2010-03-29 02:04:12
Subject: Re: Socket & TCP connections
Previous:From: Mike WilliamsDate: 2010-03-28 22:27:33
Subject: Re: ERROR: could not open segment 1 of relation 1663/743352/743420 (target block 6407642): No such file or directory

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