Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id BB3C6475C53 for ; Fri, 24 May 2002 07:56:11 -0400 (EDT) Received: from jalapeno.crazydogs.org (unknown [212.78.70.100]) by postgresql.org (Postfix) with ESMTP id 1D5F747606F for ; Fri, 24 May 2002 07:53:55 -0400 (EDT) Received: from rp by jalapeno.crazydogs.org with local (Exim 3.35 #1 (Debian)) id 17BDUV-00077h-00 for ; Fri, 24 May 2002 12:44:15 +0100 Date: Fri, 24 May 2002 12:44:15 +0100 From: Richard Poole To: pgsql-admin@postgresql.org Subject: Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2 Message-ID: <20020524114415.GA19035@guests.deus.net> References: <000001c202d1$f44cf5e0$6401a8c0@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c202d1$f44cf5e0$6401a8c0@laptop> User-Agent: Mutt/1.3.28i X-Archive-Number: 200205/192 X-Sequence-Number: 4367 On Thu, May 23, 2002 at 11:20:27PM -0400, Jeff Kowalczyk wrote: > I made a dumb mistake, and forgot to write down the autogenerated > administrator password when I first started the Postgres database on > RedHat 7.3. I'm having a hard time finding information on how to do this > online, and it's a tricky term to search the archives for, as well. It's well described in Chapter 4 of the Administrators' Guide. Find your pg_hba.conf file (in your data directory; rpm -ql postgresql | grep pg_hba will find it for you) and edit it so that you can connect with no password (add a line like local all trust above the other lines), then connect and set a password of your choice, then edit pg_hba.conf back. You'll need to do "pg_ctl reload" to get Postgres to see your changes to pg_hba.conf . Richard