From mutin@rubos.com Wed Jan 24 13:28:14 2001 Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0ODSE000487 for ; Wed, 24 Jan 2001 08:28:14 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from silver.rubos.com ([216.181.11.37]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0N4bD006898 for ; Mon, 22 Jan 2001 23:37:13 -0500 (EST) (envelope-from mutin@rubos.com) Received: from noble (noble.rubos.com [216.181.11.36]) by silver.rubos.com (8.8.7/8.8.7) with SMTP id XAA09493 for ; Mon, 22 Jan 2001 23:43:23 -0500 Message-ID: <010d01c084f5$e610f9a0$240bb5d8@noble.rubos.com> Reply-To: "Mikhail Utin" From: "Mikhail Utin" To: Subject: forgotten data base superuser password Date: Mon, 22 Jan 2001 23:35:22 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010A_01C084CB.FCFF6F40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Archive-Number: 200101/148 X-Sequence-Number: 525 This is a multi-part message in MIME format. ------=_NextPart_000_010A_01C084CB.FCFF6F40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 i= t up while logging in as postgresql. Is that right way to change DB superus= er 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 ------=_NextPart_000_010A_01C084CB.FCFF6F40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I've been develop= ing my site=20 with postgresql as DB engine since 2000. My DB administrator is gone, and I= do=20 not know postgresql (DB superuser) account password. The DB is v.6.5.2 and = is=20 running on Linux 5.2 kernel.
I can change the account password to blank using my roo= t=20 account, and set it up while logging in as postgresql. Is that right way to= =20 change DB superuser forgotten password? I am not sure how the DB uses pg_sh= adow=20 file, and if it will be synchronized after I changed the password.
Thank you
 
Mikhail A. Utin
------=_NextPart_000_010A_01C084CB.FCFF6F40-- From tgl@sss.pgh.pa.us Wed Jan 24 15:57:34 2001 Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0OFvYq23546 for ; Wed, 24 Jan 2001 10:57:34 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f0OFuq912493; Wed, 24 Jan 2001 10:56:52 -0500 (EST) To: "Mikhail Utin" cc: pgsql-admin@postgresql.org Subject: Re: forgotten data base superuser password In-reply-to: <010d01c084f5$e610f9a0$240bb5d8@noble.rubos.com> References: <010d01c084f5$e610f9a0$240bb5d8@noble.rubos.com> Comments: In-reply-to "Mikhail Utin" message dated "Mon, 22 Jan 2001 23:35:22 -0500" Date: Wed, 24 Jan 2001 10:56:52 -0500 Message-ID: <12490.980351812@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200101/149 X-Sequence-Number: 526 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