From: Richard Poole <rp@guests.deus.net>
To: pgsql-admin@postgresql.org
Subject: Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2
Date: Fri, 24 May 2002 12:44:15 +0100
Message-ID: <20020524114415.GA19035@guests.deus.net> (raw)
In-Reply-To: <000001c202d1$f44cf5e0$6401a8c0@laptop>
References: <000001c202d1$f44cf5e0$6401a8c0@laptop>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rp@guests.deus.net
Subject: Re: Forgot admin pw on initialization/install RH 7.3/PGSQL7.2
In-Reply-To: <20020524114415.GA19035@guests.deus.net>
References: <000001c202d1$f44cf5e0$6401a8c0@laptop> <20020524114415.GA19035@guests.deus.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox