Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1AA8363513F for ; Sat, 13 Jun 2009 20:56:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 39386-08 for ; Sat, 13 Jun 2009 20:56:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp-gw30.mailanyone.net (smtp-gw30.mailanyone.net [208.70.128.56]) by mail.postgresql.org (Postfix) with ESMTP id DB186633A4B for ; Sat, 13 Jun 2009 20:56:22 -0300 (ADT) Received: from mailanyone.net by smtp-gw30.mailanyone.net with esmtpa (MailAnyone extSMTP andy@networkmail.eu) id 1MFd5A-0001dT-Bb; Sat, 13 Jun 2009 18:56:20 -0500 Message-ID: <4A343CA2.4040900@networkmail.eu> Date: Sun, 14 Jun 2009 00:56:18 +0100 From: Andy Shellam User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Mark Fenbers CC: PostgreSQL - SQL Subject: Re: drop PW References: <4A341148.3040102@noaa.gov> In-Reply-To: <4A341148.3040102@noaa.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/70 X-Sequence-Number: 32675 Mark, As Joshua said, you can modify pg_hba.conf. What's happening is PostgreSQL is configured to require a password for the IP address that user is connecting from, but you're not supplying one. Set that user and the IP address they connect from to "trust" security in pg_hba.conf and bounce PostgreSQL. An alternative approach is to add the required password to your user's .pgpass file however I've never used those so cannot comment. Andy Mark Fenbers wrote: > I have created a new 8.3 version DB and populated it. A specific user > of this database (george) has been setup with a password, so that > every time I use psql or some other utility, I need to supply this > password. So I want to drop the password authentication. I tried > rerunning createuser (and just pressing Enter when prompted for the > new password), but it complains that the user already exists. I can't > drop the user because this user owns the DB and all the tables. My > postgresql books are all for 7.x, and suggests altering the pg_shadow > table (which seems risky to me). I tried: > ALTER USER george PASSWORD ''; > and that looked like it succeeded, but running psql again prompted me > and when I just hit Enter, it complained that no password was supplied. > > So how do I turn off being prompted for a password for george. (I am > aware of the security risks...) > > Mark >