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 1kYCFh-0000cB-19 for pgsql-general@arkaria.postgresql.org; Thu, 29 Oct 2020 18:02:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kYCFf-0003wJ-Vi for pgsql-general@arkaria.postgresql.org; Thu, 29 Oct 2020 18:02:19 +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 1kYCFf-0003v8-Ns for pgsql-general@lists.postgresql.org; Thu, 29 Oct 2020 18:02:19 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYCFd-00013o-Ij for pgsql-general@lists.postgresql.org; Thu, 29 Oct 2020 18:02:18 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 58AF7A53; Thu, 29 Oct 2020 14:02:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 29 Oct 2020 14:02:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=d r1Ds/urmdrIc+BWmdHqv7+UV7qmQh76K1ybInN5SXs=; b=KObL6d0isSbtgq3+W /MS+X8EtGyBZtlZZ8XHLo2Cls0VjiGy+w9y08rlYHekYMiLFVQXA4oRvc1IyWioN b11Hikrjxv7jttgnXQ0WF6HEXaYnVDPfgnQ9Xd80+KPNtjyQgPyWL6AmWjvKFqTU y5G+MMMgEqca08fJh6s+W5RUtCTo/2FkGq0zYKfRVXW8J8SU5+xi2DQ/rMcxod+M T4/lbYrDxYmCpHCif//yFDKVVLSFaa7S6Mgt/+pQkk0aPlQxNaLqnHmuOVwRODwH gOyIhg3omAfNPvsHAzdM1P9yiN+t6+QKP+0iJwHkRvRQIEUaJfYrUAvAUYO8qwDb tMk/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=dr1Ds/urmdrIc+BWmdHqv7+UV7qmQh76K1ybInN5S Xs=; b=MfiVj5NLKI9qePwhMJ+r53oKlcYBDIXTyLjQ1WBTgAGTxgwWFlgx50WEX N2Bc03m5WNaG8od4qx/Ihntlz6D+7NxhRCAGxKZE2KmbUp0uDxT7Td6d2E8TwpID Naid97RTzzI4zIf6UZGndV+QJGXwxdym+gY7+Pa3hPKgitWydbwyVHNAJ+KjLFVV z+zmt1vKApOZb6Qm2AIBJGoEDoreqMBJeBevzwxrPGykFHdfcckxE49KJZ5Vb66c M+zLC5swC2TrslwDFiuGbENVwpnKUM1psJH8gRY/bwIe/0+irb7qvaljKHkwtdht a4ZuO6PWYy8Y+WGAffqdDd5IO8R7Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleefgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeetjedvteffjeeuvdelieeffeehuedthffgvdfhhffh kedvudevgedvjedufefgveenucfkphephedtrdduleejrdektddrvdenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 5062E3280064; Thu, 29 Oct 2020 14:02:15 -0400 (EDT) Subject: Re: psql asks for password despite configuring trust authentication To: Atul Kumar , pgsql-general References: From: Adrian Klaver Message-ID: Date: Thu, 29 Oct 2020 11:02:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/29/20 10:59 AM, Atul Kumar wrote: > hi, > > My problem is, that I am always asked for password when trying to > interact with the database or access it, although the authentication > is set to trust for all users and databases. What is the connection command you are using? Did you reload the server after making changes to pg_hba.conf? Are you sure you are pointing at the right database? What are the contents of your pg_hba.conf file? > > Please help. > > > > Regards, > Atul > > -- Adrian Klaver adrian.klaver@aklaver.com