Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEg2b-0005Fg-Oo for pgsql-general@arkaria.postgresql.org; Thu, 29 Jun 2023 01:01:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qEg2Z-0007CA-KH for pgsql-general@arkaria.postgresql.org; Thu, 29 Jun 2023 01:01:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEg2Y-0007Bv-AS for pgsql-general@lists.postgresql.org; Thu, 29 Jun 2023 01:01:43 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qEg2U-0010eY-HA for pgsql-general@lists.postgresql.org; Thu, 29 Jun 2023 01:01:40 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1D0665C0186; Wed, 28 Jun 2023 21:01:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 28 Jun 2023 21:01:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1688000497; x=1688086897; bh=WTqg8gb5GQY6xcwWoWS+1RZeX9T6ALjw3oM K9/9GiPA=; b=PeQwowK/zxBEd+06TNVi50pF0bTI4TXh3utlNiuy5eMubKPr6lX 4rWeXUb25nqdEokn6h/c3zkErvK8igTZmSzY1RaJeN8YgvuJu4aZ9Lc6HdO7YTrg cnDi4f24hh8k5TjyH0DwDYqc5Xid09WO82T/exHYQB9s7atF4IVihob2ga21fXan 9ketJEuXlP1nzVEBSHWdoPFwBi9q8hcGXX9kFv08prLHP9gPckPXcpWlxSuLgXZt iLoQniV2jipDsiZheCHqmyuy351zcRmfxFsxqTmFwGygNL9pc000Il0E7rEF6y4M yQwaR4rvbXVq3geWrVA8HjwsKaG6U/h/4FQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1688000497; x= 1688086897; bh=WTqg8gb5GQY6xcwWoWS+1RZeX9T6ALjw3oMK9/9GiPA=; b=o MqobU2+j4KC1x5BIMJoOymSYGe8iam2IVoJP9kWVDeMEq1+ToVzGMOUR0MGmn+HT jV6awXY1kzzX5umJjI8ElyyOJMWGw03BH9xHm0EvPMDESdrCdqiAuUbBKtpO36AI UVHVFKTxpcx2NIe2jLDI0cplKZ+epYnt0F22tVIpwYbA4c4YLZ6dzzuMZbxSPaWA cga/RaMUvB39YmO3/yZRtrdFkD/UEZy9/w5bLUlrOlcoVc+nMo/tjXHRCkYQUEIc 7GdmzQ+ImMnF/1amjsxECZzxeU7seUtwVIiq04/n3+QYHfTXZP1sg4JnCMPv0VFp Iq+45BRy8ZIFOJChq9wOQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdefgdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepffduhedtudeggfekveduffehveevhfeftedthfeviedv gfeigefhieeugefggfegnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Jun 2023 21:01:36 -0400 (EDT) Message-ID: <86241f9e-45c6-9a3b-5bf7-623308fcbda1@aklaver.com> Date: Wed, 28 Jun 2023 18:01:35 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Wrong passwords allowed To: Atul Kumar , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/28/23 17:45, Atul Kumar wrote: > Hi, > > I am having a strange issue that I have a postgres intance running on > version 12 in centos 7. > > So whenever I am trying to login in the database using psql -W option, I > am entering the wrong passwords for that user, even after that I am > logging in the database. > > So could you help me in telling why is this strange behavior happening. > > It is taking any passwords for any user be it right password or wrong > password. > > What could be the problem? Not reading this: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html and this: https://www.postgresql.org/docs/current/auth-trust.html or this: https://www.postgresql.org/docs/current/auth-peer.html > > > Regards. > > > -- Adrian Klaver adrian.klaver@aklaver.com