Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CFECD6338AE for ; Sun, 28 Mar 2010 18:23:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 92914-05-6 for ; Sun, 28 Mar 2010 21:23:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id BB5B16341B2 for ; Sun, 28 Mar 2010 18:21:58 -0300 (ADT) Received: from [192.168.0.7] (uni14-1-82-233-223-216.fbx.proxad.net [82.233.223.216]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id D3E003B8F5; Sun, 28 Mar 2010 23:21:56 +0200 (CEST) Message-ID: <4BAFC871.4040609@lelarge.info> Date: Sun, 28 Mar 2010 23:21:53 +0200 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Nilesh Govindarajan CC: pgsql-admin@postgresql.org Subject: Re: Socket & TCP connections References: <4BAF8DA9.2010000@itech7.com> In-Reply-To: <4BAF8DA9.2010000@itech7.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.918 tagged_above=-10 required=5 tests=AWL=0.681, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/214 X-Sequence-Number: 34013 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