pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mad <mad7@runbox.com>
To: pgsql-admin@postgresql.org
Subject: Re: Fwd: resetting superuser password
Date: 9 Nov 2005 09:50:09 -0800
Message-ID: <1131558609.146035.262450@g44g2000cwa.googlegroups.com> (raw)
In-Reply-To: <Pine.LNX.4.63.0511091442550.14882@mail.kivi.com.tr>
References: <E1EZpDc-0001mP-2c@garm.runbox.com>
	<Pine.LNX.4.63.0511091442550.14882@mail.kivi.com.tr>

Thanks to all who replied, and all apologies for the multiple posting
(my fault).

The solution (in postgres 8.0.1):

Edit data/pg_hba.conf to contain the line:

local all postgres trust

Then su to unix user postgres and restart postges with:

> bin/pg_ctl restart -D /usr/local/pgsql/data -m fast

and finally, login to postgres with:

> psql -U postgres -d template1

and do

alter user postgres with encrypted password 'newpass';

Remove the line added to pg_hba.conf, and restart postgres again!
I'm a happy (and very relieved) camper.

Marc




view thread (5+ messages)

Message-ID: <1131558609.146035.262450@g44g2000cwa.googlegroups.com>
Permalink:  ../1131558609.146035.262450@g44g2000cwa.googlegroups.com/
Also on:    postgresql.org/message-id/1131558609.146035.262450@g44g2000cwa.googlegroups.com

 · 

reply

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: mad7@runbox.com
  Subject: Re: Fwd: resetting superuser password
  In-Reply-To: <1131558609.146035.262450@g44g2000cwa.googlegroups.com>
  References: <E1EZpDc-0001mP-2c@garm.runbox.com> <Pine.LNX.4.63.0511091442550.14882@mail.kivi.com.tr> <1131558609.146035.262450@g44g2000cwa.googlegroups.com>

* 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