Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 562299FA31A for ; Tue, 6 Feb 2007 23:44:03 -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 89654-07 for ; Tue, 6 Feb 2007 23:43:47 -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 DEC289FA0B7 for ; Tue, 6 Feb 2007 23:43:59 -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 l173i1QT001131; Tue, 6 Feb 2007 19:44:02 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CF4827E56; Wed, 7 Feb 2007 00:43:55 -0300 (CLST) Date: Wed, 7 Feb 2007 00:43:55 -0300 From: Alvaro Herrera To: bubblboy Cc: pgsql-docs@postgresql.org Subject: Re: Online documentation unclear about authentication defaults Message-ID: <20070207034355.GG11742@alvh.no-ip.org> Mail-Followup-To: bubblboy , pgsql-docs@postgresql.org References: <45C93D68.2050101@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C93D68.2050101@gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 06 Feb 2007 19:44:02 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/6 X-Sequence-Number: 4137 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? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support