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 1uwlN3-0074V4-MX for pgsql-novice@arkaria.postgresql.org; Thu, 11 Sep 2025 17:46:09 +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 1uwlN0-009Lob-Ec for pgsql-novice@arkaria.postgresql.org; Thu, 11 Sep 2025 17:46:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uwlN0-009LoT-65 for pgsql-novice@lists.postgresql.org; Thu, 11 Sep 2025 17:46:06 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uwlMw-000Egf-1M for pgsql-novice@lists.postgresql.org; Thu, 11 Sep 2025 17:46:05 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-6228de280a4so1737936a12.2 for ; Thu, 11 Sep 2025 10:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757612762; x=1758217562; 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=qQ6WzcQ4HixtAEreoAIbYgQabr7QK9B+rKgfjsmFfew=; b=lnrgChfSvv++sA9x/jPzb4DNRxWYaU+uZ40+1A/KhoUVpK6j5El3o0rOHAgCsEQNw1 ERP73xXEewk2W4heRAuD0/qoDGapcQ8xrhYSPCmHZI7jEuNlhxmJySDvIDlimTm2+Jp4 ADNDG6rvQflOMY53sTuxlqlFRc21EjKN56teaoJtr3DIDE+/w1//2wJ1jWyTbNOdqkLy 5BWEz2GWFraN/gB4UFc6HhK9kmjTXJAhJcI17vz7lX9NrmofWTrm7ao3PRWOE4YvzthR pnOsvBy+8ajMayBKUIy2tkNq8/ZyCfVOpWAFFuaFUULxV+E8wb8c+kf+3OCs2KwaFfWA nPiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757612762; x=1758217562; 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=qQ6WzcQ4HixtAEreoAIbYgQabr7QK9B+rKgfjsmFfew=; b=TNAuAb8bMradBxcjiO7UlYK/0H0iosWloVVfmwieFG/j8lgZ31dE6J9v0Uvg95Dmvd +pREbUmhjNkSwwLd+0zNZ+xMpY/0eEAKwL9JaXk2w18FgJZMq/gWZ+b1LmriZU0EiAmt RTcAM79ejWNynXT6bprLXviA5LPs+DFFmTFkDXmpGK6qpAFe9WDbUUmdKS/lA/P/Twyu /TtfhoN5bruUlvr5MddjciWxULKAww3F4y/ORfmXAk6a6rzUX1/LTMBBEIwdruGk06ts rbC4llODr9mMd6GBpqJvBfyP6st8pdKyTgerSiU6YugBj+vriFGv9gutu99Xl7fomNsB tdEw== X-Forwarded-Encrypted: i=1; AJvYcCU1hoTobfCL9GjuvgFpX+GfJhkERNnUnJciOk5+i7NOR8Qu+55df0UoCWiwg9LxaotB74IoSzGIBlHLj4g=@lists.postgresql.org X-Gm-Message-State: AOJu0YwaY+tqC16Ky2XWzooeWDulQlp4nGgVUAIJkdPXvTHjZ3Zfm2dU o6jX0DN7c/fH0J2SOZpjc06kYPkT2P2GVcKyxmLgsI0qB4BIJO578tuvcbhm0HsStVYO6xPTg4s CQm5hL07MMoJHTfFfJE9fO5ib6XR0Cm0= X-Gm-Gg: ASbGncvuwsT26O/2PYJhyv6SeMGzHTZZ89Qeitm6g73hMFgOeaB206+Tq6UA8j04Jzd Me7bU1cgl5sXfl+UX6BZfM/sfSAn2ZnyrvZ2sJWSoaQ9NNsoPq1ss2ecqaa7LmptwbSVI7WwXPW stiLuRIUgx5ypnUu+a/oMTYkg9QfRl3Yfdvvc5bTihoX6kTJGIwFRsNi+/iz8rDqkQGQmMq/Q0g 6kCYimFU9xDF8WcJA== X-Google-Smtp-Source: AGHT+IFOQBj/o3YdqJrp7yAb7vOHT6CoEZXVg0rf5Sh5biMhOYHHpipaO6/RrAQqcKNPAgaiAh/KiqvDoyeobfT3KvU= X-Received: by 2002:a05:6402:2802:b0:627:6281:e441 with SMTP id 4fb4d7f45d1cf-62ed8278bfemr361494a12.23.1757612762302; Thu, 11 Sep 2025 10:46:02 -0700 (PDT) MIME-Version: 1.0 References: <202509111457.7uj26nyvbu5n@alvherre.pgsql> In-Reply-To: <202509111457.7uj26nyvbu5n@alvherre.pgsql> From: Justin Date: Thu, 11 Sep 2025 13:45:51 -0400 X-Gm-Features: AS18NWD7PrLDgfxLN4htQd17Hw8Ac393cuwaNKIoSPPpVNIn1ae-Zk80e09nezw Message-ID: Subject: Re: Forgot Password To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: Laura Briones , pgsql-novice@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000598ed5063e8a1c39" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000598ed5063e8a1c39 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There is no way to reset the password without logging into the host resetting the password if there is no other superuser or other high level role to login as.. If this is a Linux box sudo as postgres then psql the default configuration is trust Unix Sockets, then can reset the password. have to have sudo powers to become postgres... have to have sudo powers to modify the pg_hba.conf file then reload the config.. sudo -iu postgres psql \password Windows this is bit harder, best add localhost trust entry into the pg_hba.conf then reload the configuration psql -h localhost -U postgres -d postgres \password Hope this helps Thanks Justin On Thu, Sep 11, 2025 at 1:30=E2=80=AFPM =C3=81lvaro Herrera wrote: > On 2025-Sep-11, Laura Briones wrote: > > > [image: image.png] > > Hi, How do I reset this password? The data file is not on my computer s= o > I > > can't go into pg_hba.conf to reset. > > I don't know of any way to reset that password without logging in to the > computer that hosts the service. > > -- > =C3=81lvaro Herrera Breisgau, Deutschland =E2=80=94 > https://www.EnterpriseDB.com/ > "En las profundidades de nuestro inconsciente hay una obsesiva necesidad > de un universo l=C3=B3gico y coherente. Pero el universo real se halla si= empre > un paso m=C3=A1s all=C3=A1 de la l=C3=B3gica" (Irulan) > > > --000000000000598ed5063e8a1c39 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There is no way to reset the password without logging into= the host resetting=C2=A0the password=C2=A0 if there is no=C2=A0other super= user or other high level=C2=A0role to login as..

If this is a Linux = box sudo as postgres then psql=C2=A0 the default configuration is trust Uni= x Sockets,=C2=A0 then can reset the password.
have to have sudo powers t= o become postgres...=C2=A0 have to have sudo powers to modify the pg_hba.co= nf file=C2=A0 then reload the config..

sudo -iu postgres
psql=C2= =A0
\password <username>=C2=A0

Windows this is bit harder,= =C2=A0 best add localhost trust entry into the pg_hba.conf=C2=A0 then reloa= d the configuration

psql -h localhost -U postgres=C2=A0 -d postgres<= br>\password <username>

Hope this helps

Thanks
Justi= n


On Thu, Sep 11, 2025 at 1:30=E2=80=AFPM =C3= =81lvaro Herrera <alvherre@kuril= emu.de> wrote:
On 2025-Sep-11, Laura Briones wrote:

> [image: image.png]
> Hi, How do I reset this password? The data file is not on my computer = so I
> can't go into=C2=A0 pg_hba.conf to reset.

I don't know of any way to reset that password without logging in to th= e
computer that hosts the service.

--
=C3=81lvaro Herrera=C2=A0 =C2=A0 =C2=A0 =C2=A0 Breisgau, Deutschland=C2=A0 = =E2=80=94=C2=A0 https://www.EnterpriseDB.com/
"En las profundidades de nuestro inconsciente hay una obsesiva necesid= ad
de un universo l=C3=B3gico y coherente. Pero el universo real se halla siem= pre
un paso m=C3=A1s all=C3=A1 de la l=C3=B3gica" (Irulan)


--000000000000598ed5063e8a1c39--