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 1swPiR-003fwH-JS for pgsql-admin@arkaria.postgresql.org; Thu, 03 Oct 2024 17:34:16 +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 1swPiQ-0016Ig-99 for pgsql-admin@arkaria.postgresql.org; Thu, 03 Oct 2024 17:34:14 +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 1swPiP-0016HT-Sz for pgsql-admin@lists.postgresql.org; Thu, 03 Oct 2024 17:34:13 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1swPiL-002NiL-Va for pgsql-admin@lists.postgresql.org; Thu, 03 Oct 2024 17:34:13 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5c88e45f467so2181290a12.1 for ; Thu, 03 Oct 2024 10:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=cybertec.at; t=1727976850; x=1728581650; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=gOX/S7lwEY3V0el1kQw4XZURsqZ0oos4ZxZNdwZrWtk=; b=Hq6D1m/djMpRo88/J8byPekePJzSo0j0oQhpEltAotffRmE1xjxs7lN86Byxz7te7f 6J85NBhypfWa+Q2QimCLw633Wv5V+hNoWiVTZDic7+IMM5+lfNViv7gn9OBldNBnGLkK VWzlXqiW7GNjohhV8I5NtLUqq/Kcwxcbw+JcI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727976850; x=1728581650; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gOX/S7lwEY3V0el1kQw4XZURsqZ0oos4ZxZNdwZrWtk=; b=tcA9EyrXlv6vDZtHiN9pajpE0Gk5vgsPFBFSJWCISntkx1A6fhPR6zJHorgwOgJ3hT ap6BpgtMtTlGaeEb6i1TX4IYqMxZCvdHanTiu/v4hH6cdvzbE7tV6JDeS0W/Lw6YF9ep Pehh1RcxDFTc3d39gEhTlWgUqpvoeTpaI2zeIoATUmUzQkmVn0E00lqoi0cQMq3sRmoC tEQvl6x7NnyBJopQZtW/C1KgUzZSlemYzupSuVAG7p26kUsqlVzh/N0dIOgjXQxANldg 33gI5si1zzBSlgIjVy0ydlEcQLECNRrNBq9e9FPzvIWwBHjq8BQDcoX3NdZz6QPf2fpK +e7Q== X-Forwarded-Encrypted: i=1; AJvYcCVg2Zn4Cy7sTgCQqOoQGXhy8Ion46zG85FTWz3bqNeXymZe1e8otqrdT/oYG5tWi8MoMBpm62J+8kc1og==@lists.postgresql.org X-Gm-Message-State: AOJu0YzoFWjqEHFUsHSgMcHIqWEOU4LgdWzGm50mklYio5LfkAQ1yFWA 400pgeIQE1asEClbztD5m5L5t4nCy0/9eftcsoMSwaUuW7o02uox3BLle+Beu7yMNpVzd701VFZ + X-Google-Smtp-Source: AGHT+IFiDDBWv3UnQ/KbiPyL98TKdQKNNcR+HBZ60qN4iZ9Fxmv2Fonzmi71WudQBxpLch2ryzr7kQ== X-Received: by 2002:a05:6402:27d3:b0:5c8:97b9:58a6 with SMTP id 4fb4d7f45d1cf-5c8c0a04711mr4128401a12.1.1727976850119; Thu, 03 Oct 2024 10:34:10 -0700 (PDT) Received: from dynamic-pd01.res.v6.highway.a1.net ([2001:871:260:b6c3:7b80:5b38:4f0b:4e99]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c8ca3fc118sm936259a12.44.2024.10.03.10.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 10:34:09 -0700 (PDT) Message-ID: <3b111b08b49a9ba4ccc70f3638a366ad721eea6e.camel@cybertec.at> Subject: Re: Can't log in after password change From: Laurenz Albe To: Ron Johnson , Pgsql-admin Date: Thu, 03 Oct 2024 19:34:09 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2024-10-03 at 13:21 -0400, Ron Johnson wrote: > PG 14.13 >=20 > Changed a user's expired password from user "postgres", and now that user= can't log in. >=20 > I know it's something simple, but I just can't see it. >=20 > Linux server: >=20 > $ ssh -q FISPCDSPGS401A grep 11026270 '$PGDATA'/pg_hba.conf > host =C2=A0 =C2=A0all =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 11026270 = =C2=A0 =C2=A0 =C2=A0 =C2=A010.176.64.0/22 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0scram-sha-256 >=20 > $ psql -h FISPCDSPGS401A=20 > =C2=A0keyword =C2=A0| =C2=A0 =C2=A0 value =C2=A0 =C2=A0=20 > ----------+--------------- > =C2=A0database | postgres > =C2=A0user =C2=A0 =C2=A0 | postgres > =C2=A0host =C2=A0 =C2=A0 | 10.143.170.55 > =C2=A0port =C2=A0 =C2=A0 | 5432 > (4 rows) >=20 > psql (16.4, server 14.13) > Type "help" for help. >=20 > postgres=3D# ALTER ROLE "11026270" WITH PASSWORD 'blarge'; > ALTER ROLE > postgres=3D# select rolpassword from pg_authid where rolname=3D'11026270'= ; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rolpa= ssword =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 > -------------------------------------------------------------------------= -------------------------------------------------------------- > =C2=A0SCRAM-SHA-256$4096:x551tt4biKIvossG7VwbjA=3D=3D$syOJXKLOFZ8/LHUxHq8= rE5q5dCEDNzB5wgOAHq1vmdI=3D:q670pqidak6v8YjP9KCCWrRmfkkJSvyf/AL0Ydg1k/o=3D > (1 row) >=20 > Windows server: >=20 > C:\Users\11026270>psql -h FISPCDSPGS401A postgres > Password for user 11026270: > psql: error: connection to server at "FISPCDSPGS401A" (10.143.170.55), po= rt 5432 failed: FATAL: =C2=A0password authentication failed for user "11026= 270" Did you look at the error message in the server log? What does it say? Yours, Laurenz Albe