pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Nilesh Govindarajan <lists@itech7.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Socket & TCP connections
Date: Sun, 28 Mar 2010 23:21:53 +0200
Message-ID: <4BAFC871.4040609@lelarge.info> (raw)
In-Reply-To: <4BAF8DA9.2010000@itech7.com>
References: <4BAF8DA9.2010000@itech7.com>

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.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com



view thread (7+ messages)  latest in thread

Message-ID: <4BAFC871.4040609@lelarge.info>
Permalink:  ../4BAFC871.4040609@lelarge.info/
Also on:    postgresql.org/message-id/4BAFC871.4040609@lelarge.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: guillaume@lelarge.info, lists@itech7.com
  Subject: Re: Socket & TCP connections
  In-Reply-To: <4BAFC871.4040609@lelarge.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox