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 1p35pL-00022q-MI for pgsql-admin@arkaria.postgresql.org; Thu, 08 Dec 2022 01:35:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p35oL-000205-WF for pgsql-admin@arkaria.postgresql.org; Thu, 08 Dec 2022 01:34:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p35oL-0001zw-Lx for pgsql-admin@lists.postgresql.org; Thu, 08 Dec 2022 01:34:53 +0000 Received: from mout-u-107.mailbox.org ([80.241.59.207]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p35oH-0003UG-Nr for pgsql-admin@postgresql.org; Thu, 08 Dec 2022 01:34:53 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4NSGsr3KXXz9stV; Thu, 8 Dec 2022 02:34:40 +0100 (CET) Date: Thu, 8 Dec 2022 02:34:35 +0100 (CET) From: Erik Wienhold To: M Sarwar Cc: pgsql-admin Message-ID: <831227649.401736.1670463275062@office.mailbox.org> In-Reply-To: References: <1248013365.2011.1670455113858.JavaMail.zimbra@jppozzi.dyndns.org> Subject: Re: Using non-Super user with PgAmdin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Sarwar, > On 08/12/2022 00:51 CET M Sarwar wrote: > > I have created a user with my name and unable to verify the same using pg= admin > or any other way. For many of you this question is a novice. I am seeking= the > help after spending sometime on this. You can point me to the document if= you > or anybody can think of=C2=A0anything or find it. > Thank you! > Sarwar A few questions: * What Postgres version do you use? * What error message do you get when connecting with your new user? I assum= e that you get an error when you say "unable to verify". * How did you create that user? Was it CREATE USER[1] or createuser via com= mand line? In case of CREATE ROLE[2] you must also specify attribute LOGIN whi= ch effectively is the same as CREATE USER. The login privilege must also be enabled when creating roles via pgAdmin.[3] * What does your pg_hba.conf[4] look like? You must configure the right databases, usernames, and client addresses before connecting. [1] https://www.postgresql.org/docs/current/sql-createuser.html [2] https://www.postgresql.org/docs/current/sql-createrole.html [3] https://www.pgadmin.org/docs/pgadmin4/latest/role_dialog.html [4] https://www.postgresql.org/docs/current/auth-pg-hba-conf.html P.S. Please don't hijack threads. -- Erik