X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B44674762CF for ; Wed, 7 May 2003 14:43:51 -0400 (EDT) Received: from kronos.honk.org (kronos.honk.org [206.191.41.253]) by postgresql.org (Postfix) with ESMTP id DE202476141 for ; Wed, 7 May 2003 14:43:50 -0400 (EDT) Received: from kronos.honk.org (localhost [127.0.0.1]) by kronos.honk.org (8.12.3/8.12.3) with ESMTP id h47IXubM026108; Wed, 7 May 2003 14:33:56 -0400 Received: from localhost (jearle@localhost) by kronos.honk.org (8.12.3/8.12.3/Debian-6.3) with ESMTP id h47IXu8d026104; Wed, 7 May 2003 14:33:56 -0400 Date: Wed, 7 May 2003 14:33:55 -0400 (EDT) From: Jon Earle To: mallah@trade-india.com Cc: pgsql-sql@postgresql.org Subject: Re: [GENERAL] PostgreSQL Qs In-Reply-To: <1410.219.65.253.25.1052330484.squirrel@mail.trade-india.com> Message-ID: References: <1410.219.65.253.25.1052330484.squirrel@mail.trade-india.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-38.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,SIGNATURE_SHORT_SPARSE, USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/255 X-Sequence-Number: 13420 On Wed, 7 May 2003 mallah@trade-india.com wrote: > Hi , > > shudn't "host" lines in pg_hba.conf be in format > host database user ip mask method > > in lines below u missed the user part: > > > host all 127.0.0.1 255.0.0.0 md5 > > host dbname 0.0.0.0 255.255.255.255 md5 I don't believe so. From the pg_hba.conf docs: # host # ---- # # This record identifies networked hosts that are permitted to connect # via IP connections. # # Format: # # host DBNAME IP_ADDRESS ADDRESS_MASK AUTH_TYPE [AUTH_ARGUMENT] I ended up solving the problem however. With a colleague offering thoughts, we determined that there is a system table named pg_shadow that contains the usernames and passwords. Didn't see that in the docs (I was thinking a file named pg_shadow would be magically created somewhere...). Next, I'd done two things wrong with the alter user command - first, I put quotes around the username and password. Apparently, just the password needs 'em. Next, I omitted the trailing ; and failed to notice the very subtle change in the command prompt that indicated it was waiting for input. Off now to get myself further in trouble with the beast! :) Thanks for the responses! Cheers! Jon -- Jon Earle SAVE FARSCAPE http://www.savefarscape.com/ While it's okay to disagree with your friends and family, childish insults do not express sovereignty.