Re: Can you help a newbie?

From: Richard Poole <richard(dot)poole(at)vi(dot)net>
To: Jamie Bumsted <jbumsted(at)evertek(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can you help a newbie?
Date: 2001-02-07 13:23:47
Message-ID: 20010207132347.C6465@office.vi.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 07, 2001 at 06:53:13AM -0600, Jamie Bumsted wrote:
> Hi All,
> I am new to pgsql, I have inherited a database with no documentation, i.e.
> nobody knows the passwords for any of the database accounts. Anybody have
> any ideas on how to change the passwords without first knowing the
> passwords?

You can edit your pg_hba.conf to allow local access with no passwords
(add a line like "local all trust" above other non-comment lines) and
then connect to the database as the database superuser (usually
"postgres") and use "alter user" to change the passwords to whatever
you like. Don't forget to change pg_hba.conf back afterwards.

Richard

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mark Alliban 2001-02-07 13:31:54 Re: Number of open files
Previous Message Karel Zak 2001-02-07 13:15:19 Re: Can you help a newbie?