Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id DBF759FB408 for ; Wed, 7 Feb 2007 15:16:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 55700-01 for ; Wed, 7 Feb 2007 15:16:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 068719FB321 for ; Wed, 7 Feb 2007 15:16:09 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-100-50.bk7-dsl.surnet.cl [200.126.100.50]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l17JG9LT016999 for ; Wed, 7 Feb 2007 11:16:10 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6A0D77DCA; Wed, 7 Feb 2007 16:16:06 -0300 (CLST) Resent-From: alvherre@alvh.no-ip.org Resent-Date: Wed, 7 Feb 2007 16:16:06 -0300 Resent-Message-ID: <20070207191606.GK22146@alvh.no-ip.org> Resent-To: pgsql-docs@postgresql.org X-Original-To: alvherre@alvh.no-ip.org Received: by perhan.alvh.no-ip.org (Postfix, from userid 1002) id D989B32A19; Wed, 7 Feb 2007 05:18:40 -0300 (CLST) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by perhan.alvh.no-ip.org (Postfix) with ESMTP id 102D632A17 for ; Wed, 7 Feb 2007 05:18:39 -0300 (CLST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by hosting.commandprompt.com (8.13.7/8.13.7) with ESMTP id l1786Fvq004776 for ; Wed, 7 Feb 2007 00:06:15 -0800 Received: by nf-out-0910.google.com with SMTP id o63so392868nfa for ; Wed, 07 Feb 2007 00:18:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=mIUvACCBaFOuM9Kz/f+9xrMfZ3InP3+OUPKoPmxhlOGDT0UbO74Vg8EMQsJBpBq2JZvvgCNv2Otb5Qfm2XTMlLvUHzZPk7Zuvdp8xHib/eMhMwW1MWbP01QyCjbjw/HPsfPffH5vnizpDWiuddD15SEI2iz1E6IwcWRj6DpYgDs= Received: by 10.82.116.15 with SMTP id o15mr1244484buc.1170834797014; Tue, 06 Feb 2007 23:53:17 -0800 (PST) Received: from magicaltrevor.lan ( [194.109.234.123]) by mx.google.com with ESMTP id l38sm5616278nfc.2007.02.06.23.53.15; Tue, 06 Feb 2007 23:53:15 -0800 (PST) Message-ID: <45C9879A.1020809@gmail.com> Date: Wed, 07 Feb 2007 09:02:34 +0100 From: bubblboy User-Agent: Thunderbird 2.0b1 (X11/20070117) MIME-Version: 1.0 To: Alvaro Herrera Cc: pgsql-docs@postgresql.org Subject: Re: Online documentation unclear about authentication defaults References: <45C93D68.2050101@gmail.com> <20070207034355.GG11742@alvh.no-ip.org> In-Reply-To: <20070207034355.GG11742@alvh.no-ip.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 07 Feb 2007 11:16:10 -0800 (PST) X-Greylist: Delayed for 00:25:14 by milter-greylist-1.6 (hosting.commandprompt.com [192.168.1.101]); Wed, 07 Feb 2007 00:06:16 -0800 (PST) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.3 X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/7 X-Sequence-Number: 4138 Alvaro Herrera wrote: > bubblboy wrote: >> Hi, >> >> After following the postgresql tutorial for setting up a postgresql >> server [1] I noticed that I could log in without entering my password. >> The documentation did not tell me this (maybe I overlooked it), >> eventhough it does show you how to create roles with passwords. In my >> opinion it would be a good idea to include a warning like "the default >> installation trusts everybody that can make a connection to the >> database" because it could lead to some (problematic) confusions. >> >> I didn't check extensively in the docs to see if there actually was such >> a warning, particularly because I felt that if there was, it was >> probably not prominent enough (or I would have noticed). Sorry if there >> was indeed a big warning splattered over the tutorial somewhere. > > The tutorial indeed neglects warning you about that, but initdb doesn't. > It outputs these lines > > WARNING: enabling "trust" authentication for local connections > You can change this by editing pg_hba.conf or using the -A option the > next time you run initdb. > > > Maybe this is not strong enough, or not scary enough? Hmm, You are right, I ran initdb a few weeks ago and continued today. Personally, I would say that it wouldn't be a bad idea to include a second warning in the documentation nonetheless, just to emphasize it (or maybe make the initdb message a little more prominent - who knows). I can imagine that I saw all that output and thought "oh well, I'm following the tutorial so this won't be very interesting", but maybe (probably) that's just plain stupid :) Greetings, bb