pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Password recover
4+ messages / 4 participants
[nested] [flat]

* Password recover
@ 2002-06-23 03:03 Peter Arzamendi <arzamendi@berbee.com>
  2002-06-24 17:59 ` Re: Password recover Larry Rosenman <ler@lerctr.org>
  2002-06-24 22:32 ` Re: Password recover Aaron Spiteri <aaron@m1group.com.au>
  0 siblings, 2 replies; 4+ messages in thread

From: Peter Arzamendi @ 2002-06-23 03:03 UTC (permalink / raw)
  To: pgsql-admin

Is there a way to recover the sa password? 

Thanks,
Pete

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Password recover
  2002-06-23 03:03 Password recover Peter Arzamendi <arzamendi@berbee.com>
@ 2002-06-24 17:59 ` Larry Rosenman <ler@lerctr.org>
  1 sibling, 0 replies; 4+ messages in thread

From: Larry Rosenman @ 2002-06-24 17:59 UTC (permalink / raw)
  To: Peter Arzamendi <arzamendi@berbee.com>; +Cc: pgsql-admin

On Sat, 2002-06-22 at 22:03, Peter Arzamendi wrote:
> Is there a way to recover the sa password? 
What version of PostgreSQL?
> 
> Thanks,
> Pete
> 
-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Password recover
  2002-06-23 03:03 Password recover Peter Arzamendi <arzamendi@berbee.com>
@ 2002-06-24 22:32 ` Aaron Spiteri <aaron@m1group.com.au>
  1 sibling, 0 replies; 4+ messages in thread

From: Aaron Spiteri @ 2002-06-24 22:32 UTC (permalink / raw)
  To: Peter Arzamendi <arzamendi@berbee.com>; pgsql-admin

I had the same problem a while a go the way I fixed was like this:
1.Log in has root user on the server.
2.Swith  to postgres user "su postgres"
3.Make a back up of your pg_hda.conf file. On  RH this is in 
/var/lib/pgsql/data
4.Alter the pg_hda.conf to trust all types of conections and restart the 
postmaster. Something like "/etc/init.d/postgres restart"
5.Log into PG using "pgsql template1" then change the sa password using 
"ALTER USER sa WITH PASSWORD 'password';
6.You can also check what the password is depending on how the 
pg_hda.conf file was setup by using the following syntax in pgsql. 
"SELECT * FROM pg_shadow WHERE usename='sa';
7.Note that on PG < version 7 the syntax is slightly different you do not 
put the "'" around the password.
8.Copy the backup of the pg_hda.conf file on top of the altered 
pg_hda.conf file and restart the postmaster.
9.Check that your security is back to normal.
Hope this helps.
Aaron@m1group.com.au


Original Message dated 23/06/02, 13:03:34
Author: "Peter Arzamendi" <arzamendi@berbee.com>
Re: [ADMIN] Password recover:


Is there a way to recover the sa password? 
Thanks, 
Pete 

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Password recover
@ 2002-06-25 04:56 Chad R. Larson <chad@DCFinc.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Chad R. Larson @ 2002-06-25 04:56 UTC (permalink / raw)
  To: Peter Arzamendi <arzamendi@berbee.com>; +Cc: pgsql-admin


On Sat, 2002-06-22 at 22:03, Peter Arzamendi wrote:
 > Is there a way to recover the sa password?
 >
 > Thanks,
 > Pete

Do you need to know what the password was, or just access password 
protected databases?


         -crl
--
Chad R. Larson (CRL15)   602-953-1392   Brother, can you paradigm?
chad@dcfinc.com         chad@larsons.org          larson1@home.com
DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2002-06-25 04:56 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-06-23 03:03 Password recover Peter Arzamendi <arzamendi@berbee.com>
2002-06-24 17:59 ` Larry Rosenman <ler@lerctr.org>
2002-06-24 22:32 ` Aaron Spiteri <aaron@m1group.com.au>
2002-06-25 04:56 Re: Password recover Chad R. Larson <chad@DCFinc.com>

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