From: Martin Fandel <martin.fandel@alphyra-evs.de>
To: mad7@runbox.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Fwd: resetting superuser password
Date: Wed, 09 Nov 2005 13:47:54 +0100
Message-ID: <1131540474.7250.375.camel@fandelm.tc.de> (raw)
In-Reply-To: <E1EZpDc-0001mP-2c@garm.runbox.com>
References: <E1EZpDc-0001mP-2c@garm.runbox.com>
Hi,
which version of postgres do you have? Put this temporarly into
the /var/lib/pgsql/data/pg_hba.conf:
if postgres 8:
local all postgres 127.0.0.1/32 trust
if postgres 7:
local all trust
then connect to template1...:
psql -U postgres -d template1
...and set your password:
alter user postgres with encrypted password 'blablubb';
i hope this works.
regards,
martin
Am Mittwoch, den 09.11.2005, 13:38 +0100 schrieb Marc A. Donis:
> I have lost the superuser (user postgres) password, but I still have the unix root password. Is there anything I can do to reset the postgres user's password (short of reinstalling Postgres)?
>
> Obviously, I can su to unix user postgres, but this does not seem to advance my cause, as doing "psql -U postgres" still prompts me for a password, which is not the same as the unix postgres user's password.
>
> OS: RedHat 9
>
> Help!
>
> Thanks,
> Marc
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> http://archives.postgresql.org
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: martin.fandel@alphyra-evs.de, mad7@runbox.com
Subject: Re: Fwd: resetting superuser password
In-Reply-To: <1131540474.7250.375.camel@fandelm.tc.de>
References: <E1EZpDc-0001mP-2c@garm.runbox.com> <1131540474.7250.375.camel@fandelm.tc.de>
* 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