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 1rzF7d-002hiB-8q for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2024 12:19:41 +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 1rzF7c-008EYb-09 for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2024 12:19:40 +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 1rzF7b-008EYT-La for pgsql-general@lists.postgresql.org; Tue, 23 Apr 2024 12:19:39 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rzF7Z-004FIS-9q for pgsql-general@lists.postgresql.org; Tue, 23 Apr 2024 12:19:38 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-5d8b519e438so4337903a12.1 for ; Tue, 23 Apr 2024 05:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713874776; x=1714479576; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OLkJV5ePwRP6JN/S5f4IbZSldyJYO6S2uhHyfIchKUM=; b=ZY3RGJKKUBqFDkf6LXA16vJ07XAFPnn23K5kQr+A3G6nQFXSLQ7utq0nYg07dHsPSS UGel1z3dUyHUGFVqDOX2QuKFvkam7tnTWn1gvs1c+moXlmyF0MPHpIR6C7WR3Rf+27+T G46I0Qvl+1gjYWeNcmJKbcIgdXNQ8m0onDkqJ/V/x1YGfRGstZObjz0QugLgxpixNfKH 4Yd6yAeC8KMhkkbWoyDBJtmdbMqpwoD3mR8uPWOnDbS5gXt7OuGT00lgsi7wbmu33TF6 SGO8ll67VGxDyqsICJkbEUNjA5JILvlsFLRwnp6eSGT5Az16pn0ZXC217v0XjEc7trtD wzYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713874776; x=1714479576; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OLkJV5ePwRP6JN/S5f4IbZSldyJYO6S2uhHyfIchKUM=; b=LdZ5omqIQ/MEHujAmgJsWVCoyehTq7bDMIxYn5CL2PrvqmBSB3qbV9omROMFU8AM76 DBX9zP7Qk8C+56qH5V4pa/zORzj1S+/rsBtyPvUvm/oVbhDgcpduf/Zu8H5ugAAqXKYl fKW3wMpbrKtZLdPiCAOPGPy7kuje0mp4iQ2l8KuJ58cXpfDaEdHGuKnNfY+qTV8j4YC9 9U3N0yvfdUHiteQ0bZq2cIWV5A49q5Ybo2zTXlxTX5oPV0YAJF3eJTPqnlM4gXN0Nrhj /XCHSfb5A8FYIzejyXVD64XsJJlrt+mnys2BC42uN10xbtlVgXt+Smi2F0eZNM+PXXA3 zP2w== X-Gm-Message-State: AOJu0Ywoc2PVWPwcokiuM6AP1hix2Q23yqOWodWZgng0tCEiU/l56O6k 8aSTm95Mj9YtfihgMGImAp1vN4bczWk3jm4q/5GKmsvVC7Xq6kHOag3PcNV2Kb484XOCwkrj8N9 KS7GQJmIq+K4eiy8axp77hLaItM0= X-Google-Smtp-Source: AGHT+IHHBMyz1ZjfvxpaV3LvegrDlNnDNQ9J2Btp4U52LZbWV6XfoVS61nksGkPdBLma8p07XwGJWHcaTMwmATFeIrM= X-Received: by 2002:a17:90a:5d04:b0:2a0:4c3b:2c39 with SMTP id s4-20020a17090a5d0400b002a04c3b2c39mr12996305pji.23.1713874776142; Tue, 23 Apr 2024 05:19:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Hans Schou Date: Tue, 23 Apr 2024 14:18:43 +0200 Message-ID: Subject: Re: Password forgotten To: Arbol One Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000038bc280616c291e2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000038bc280616c291e2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Have you tried sudo -u postgres psql On Tue, Apr 23, 2024 at 2:14=E2=80=AFPM Arbol One wro= te: > 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? > > Thanks in advance. > > > -- > *ArbolOne.ca* Using Fire Fox and Thunderbird. ArbolOne is composed of > students and volunteers dedicated to providing free services to charitabl= e > organizations. ArbolOne on Java Development is in progress [ =C3=AD ] > --=20 =F0=9D=95=B3=F0=9D=96=86=F0=9D=96=93=F0=9D=96=98 =F0=9D=95=BE=F0=9D=96=88= =F0=9D=96=8D=F0=9D=96=94=F0=9D=96=9A =E2=98=8F =E2=9E=81=E2=9E=81 =E2=9E=85=E2=9E=83 =E2=9E=87=E2=93=AA =E2=9E= =81=E2=93=AA --00000000000038bc280616c291e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Have you tried

=C2=A0=C2=A0 sudo -u postgres psql


On Tue, Apr 23, 20= 24 at 2:14=E2=80=AFPM 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?

Thanks in advance.


--
ArbolOne.ca Using Fire Fox and Thunderbird. ArbolOne is composed of students and volunteers dedicated to providing free services to charitable organizations. ArbolOne on Java Development is in progress [ =C3=AD ]


--
=F0=9D=95=B3=F0=9D=96=86=F0=9D=96=93=F0=9D= =96=98=C2=A0=F0=9D=95=BE=F0=9D=96=88=F0=9D=96=8D=F0=9D=96=94=F0=9D=96=9A
=E2=98=8F =E2=9E=81=E2=9E=81 =E2=9E=85=E2=9E=83 =E2=9E=87=E2=93= =AA =E2=9E=81=E2=93=AA
--00000000000038bc280616c291e2--