Skip site navigation (1) Skip section navigation (2)

resetting superuser password

From: "Andrew C(dot) Uselton" <acuselton(at)lbl(dot)gov>
To: pgsql-novice(at)postgresql(dot)org
Subject: resetting superuser password
Date: 2007-08-13 17:17:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Howdy all,
  We do not know the superuser (postgres) password to our database 
cluster.  The auth configuration (pg_hba.conf) has the only auth method 
set to:

Type    db    user    method    param
local   all      all      md5         sameuser

I have root access to the machine, but I don't see how to reset the 
superuser password. The thing I tried was to briefly replace the above 
auth configuration with

local   all      all      trust

and then reset the password (after the required SIGHUP).  The password 
update apparently succeeded, but when I put the md5 auth method back in 
place I still did not have access.  I conclude that "regular" and md5 
passwords are not stored in the same place or in the same way, which 
isn't all that surprising.   Any tricks you can send my way would be 
most helpful.


pgsql-novice by date

Next:From: Tom LaneDate: 2007-08-13 17:42:13
Subject: Re: resetting superuser password
Previous:From: Jasbinder Singh BaliDate: 2007-08-13 16:50:20
Subject: Postmaster start up problems (can't create lock file )

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group