Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 21CA463273B for ; Sun, 28 Mar 2010 14:11:24 -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 55248-08 for ; Sun, 28 Mar 2010 17:11:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f202.google.com (mail-iw0-f202.google.com [209.85.223.202]) by mail.postgresql.org (Postfix) with ESMTP id CB006632822 for ; Sun, 28 Mar 2010 14:11:12 -0300 (ADT) Received: by iwn40 with SMTP id 40so3078584iwn.1 for ; Sun, 28 Mar 2010 10:11:11 -0700 (PDT) Received: by 10.231.172.203 with SMTP id m11mr1972706ibz.15.1269796271721; Sun, 28 Mar 2010 10:11:11 -0700 (PDT) Received: from [192.168.1.254] ([121.246.205.20]) by mx.google.com with ESMTPS id co35sm2831305ibb.14.2010.03.28.10.11.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Mar 2010 10:11:11 -0700 (PDT) Message-ID: <4BAF8DA9.2010000@itech7.com> Date: Sun, 28 Mar 2010 22:41:05 +0530 From: Nilesh Govindarajan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Shredder/3.0.3 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Socket & TCP connections Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.905 tagged_above=-10 required=5 tests=AWL=-0.720, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 201003/209 X-Sequence-Number: 34008 Hi, 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. -- Nilesh Govindarajan Site & Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु !