From: | Martin Fandel <martin(dot)fandel(at)alphyra-evs(dot)de> |
---|---|
To: | mad7(at)runbox(dot)com |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Fwd: resetting superuser password |
Date: | 2005-11-09 12:47:54 |
Message-ID: | 1131540474.7250.375.camel@fandelm.tc.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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
From | Date | Subject | |
---|---|---|---|
Next Message | patrick hoogendijk | 2005-11-09 12:56:01 | Is there a way to check execution progress of a query? |
Previous Message | Devrim GUNDUZ | 2005-11-09 12:44:25 | Re: Fwd: resetting superuser password |