RE: Can you help a newbie?

From: "Mayers, Philip J" <p(dot)mayers(at)ic(dot)ac(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: RE: Can you help a newbie?
Date: 2001-02-07 13:14:22
Message-ID: A0F836836670D41183A800508BAF190B35E320@icex1.cc.ic.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hmm... very suspicious...

However, if you have root on that machine, try this:

su - root
su - postgres
cd /var/lib/pgsql/data
vi pg_hba.conf

add:

local databasename trust

Restart postgres, Switch back to your user, then try:

psql databasename postgres

Bingo, you're in as the DB admin. GRANT <blah> from here on in.

Regards,
Phil

+----------------------------------+
| Phil Mayers, Network Support |
| Centre for Computing Services |
| Imperial College |
+----------------------------------+

-----Original Message-----
From: Jamie Bumsted [mailto:jbumsted(at)evertek(dot)net]
Sent: 07 February 2001 12:53
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Can you help a newbie?

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?
If this is a stupid question I apologize in advance.

Thanks!

Jamie Bumsted
Systems Engineer
Evertek, Inc.

Browse pgsql-general by date

  From Date Subject
Next Message Karel Zak 2001-02-07 13:15:19 Re: Can you help a newbie?
Previous Message Jamie Bumsted 2001-02-07 12:53:13 Can you help a newbie?