Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzGAx-002mPT-Oa for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2024 13:27:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rzGAt-008aKc-Ss for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2024 13:27:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzGAt-008aKS-I0 for pgsql-general@lists.postgresql.org; Tue, 23 Apr 2024 13:27:07 +0000 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rzGAn-004Ftv-NV for pgsql-general@lists.postgresql.org; Tue, 23 Apr 2024 13:27:06 +0000 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5ad2a15374eso2356593eaf.3 for ; Tue, 23 Apr 2024 06:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713878821; x=1714483621; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6DnLL/S3TRUYdshLgklgvAIMkJpBToDh1f/u4TUNURA=; b=Qf8VCgBylDTd60SmyP8x2RP1qwugprJ6Ndo9cpugajmeSP5V+/TFtCQylkDZrCr5Eb F2ZyquFMlgNpDKnhv2fm9lcliwwEikC5s6aX3fa9NExOR8iJ9w87XZSgRGM1CsqlQtaM 8TpQ0MQL7grJHbF7ilfrlF22Tpv4IDcuYhqKTM23SKssLJIBGyOoC7T/Pr7jAPqGjm4E dK7Z9iqO3n7H8nh5kdgLG+Cg6gEMUj2KfJfLfqgw41E3kfdelABFPJewahgLpTGxvgWD b0EY/NVDgmXo6IRTBK/q33cLtlJGTVAT0Hc5YGXswcqcQVd9iFYyjKJOZtpofD75AFvu QYMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713878821; x=1714483621; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6DnLL/S3TRUYdshLgklgvAIMkJpBToDh1f/u4TUNURA=; b=wHSp0z62lLxpmKZyL7AcqsnY35VWwhBE0umGIulTl7So9qJ/ducgFasnvqzwOIZk1L g+LmQExFfiAtEgzDF3EdU6pqQmP6j/6aM7yL/l1vKnZIWPxlxDI1dfGIlftDok1qFGny A7L7WmovaN2oMqAoi5MoNUBCBpS7HePXvqx5Z0lSW8tv89gOMQKwTlCEXnzY1mw6iCSQ mevnQBuNiSVl+PmSV00JG6NN2LCUesb+mN5zw/9vgAeY2UV7AN3XGyF3j2lF40ohnWQ0 ZazCEH9HRZTkDoeAwASlOd0tUx104hEG/MNmGLNmnGbu/vlmPerSJoOA8DMVW/IZ/0KW KDEQ== X-Gm-Message-State: AOJu0Ywpmd8iZcHqronOyqD7mLQnvLprwzPVSPvzOAHoBxlS/tl6LFrb PeAJzXprS+L1AKFo/cfN8G+gStFj3TjN521nRC4z5sggNfREcYLosJua8H+Yri+THo0ujvC1jJ2 J2iPryvkDL4CFhEa/WW0nNKiJ4gs= X-Google-Smtp-Source: AGHT+IGRvQ252J7leIywUHMh3Fs6DQJcS4EG5bUE0Qyu5O/ocN49IVBqW6+iVh/lVeiKarvT8hqCUJ87tWUbZmWW0lw= X-Received: by 2002:a4a:1401:0:b0:5aa:4b31:50c5 with SMTP id 1-20020a4a1401000000b005aa4b3150c5mr13670731ood.2.1713878821099; Tue, 23 Apr 2024 06:27:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:5ec5:0:b0:525:bd21:4d70 with HTTP; Tue, 23 Apr 2024 06:27:00 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Tue, 23 Apr 2024 06:27:00 -0700 Message-ID: Subject: Re: Password forgotten To: Arbol One Cc: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000051dffb0616c382ed" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000051dffb0616c382ed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, April 23, 2024, Arbol One wrote: > Hello. > In my Debian box, after entering this command to psql-16, *psql -h > localhost -U postgres* > > psql-16 asks for the password, which I have forgotten. > So I get this message: > > > > *psql: error: connection to server at "localhost" (::1), port 5432 failed= : > FATAL: password authentication failed for user "postgres" connection to > server at "localhost" (::1), port 5432 failed: FATAL: password > authentication failed for user "postgres" * > > Is there a way I can retrieve this master password? > Nope. You need to login using a method that doesn=E2=80=99t require a pass= word then change the password. See pg_hba.conf for authentication options. Usually connecting via local and peer authentication is the default option. David J. --00000000000051dffb0616c382ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tuesday, April 23, 2024, Arbol One <ArbolOne@hotmail.ca> wrote:
=20

Hello.
In my Debian box, after entering this command to psql-16, psql -h localhost -U postgres

psql-16 asks for the password, which I have forgotten.
So I get this message:

psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL:=C2=A0 passw= ord authentication failed for user "postgres"
connection to server at "localhost" (::1), port 5432 fa= iled: FATAL:=C2=A0 password authentication failed for user "postgr= es"

Is there a way I can retrieve this master password?


Nope.=C2=A0 You need to login using a method that= doesn=E2=80=99t require a password then change the password.=C2=A0 See pg_= hba.conf for authentication options.=C2=A0 Usually connecting via local and= peer authentication is the default option.

David = J.
--00000000000051dffb0616c382ed--