pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
forgotten data base superuser password
2+ messages / 2 participants
[nested] [flat]

* forgotten data base superuser password
@ 2001-01-23 04:35 Mikhail Utin <mutin@rubos.com>
  2001-01-24 15:56 ` Re: forgotten data base superuser password Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Mikhail Utin @ 2001-01-23 04:35 UTC (permalink / raw)
  To: pgsql-admin

Hi,
I've been developing my site with postgresql as DB engine since 2000. My DB administrator is gone, and I do not know postgresql (DB superuser) account password. The DB is v.6.5.2 and is running on Linux 5.2 kernel.
I can change the account password to blank using my root account, and set it up while logging in as postgresql. Is that right way to change DB superuser forgotten password? I am not sure how the DB uses pg_shadow file, and if it will be synchronized after I changed the password.
Thank you

Mikhail A. Utin

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

* Re: forgotten data base superuser password
  2001-01-23 04:35 forgotten data base superuser password Mikhail Utin <mutin@rubos.com>
@ 2001-01-24 15:56 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2001-01-24 15:56 UTC (permalink / raw)
  To: Mikhail Utin <mutin@rubos.com>; +Cc: pgsql-admin

Best way out of that is to temporarily set pg_hba.conf to use
non-password authentication ('trust' or maybe 'ident').  Then
you can connect without the password, update the password field
in pg_shadow, and finally restore pg_hba.conf.

			regards, tom lane



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


end of thread, other threads:[~2001-01-24 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-23 04:35 forgotten data base superuser password Mikhail Utin <mutin@rubos.com>
2001-01-24 15:56 ` Tom Lane <tgl@sss.pgh.pa.us>

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