Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hz10a-0008CL-OW for pgsql-general@arkaria.postgresql.org; Sat, 17 Aug 2019 15:52:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hz10Z-0005XN-IA for pgsql-general@arkaria.postgresql.org; Sat, 17 Aug 2019 15:52:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hz10Z-0005XG-5r for pgsql-general@lists.postgresql.org; Sat, 17 Aug 2019 15:52:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hz10W-00057E-Uo for pgsql-general@lists.postgresql.org; Sat, 17 Aug 2019 15:52:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7HFqixX019973; Sat, 17 Aug 2019 11:52:44 -0400 From: Tom Lane To: stan cc: pgsql-general@lists.postgresql.org Subject: Re: A user atribute question In-reply-to: <20190817154502.GA17340@panix.com> References: <20190817154502.GA17340@panix.com> Comments: In-reply-to stan message dated "Sat, 17 Aug 2019 11:45:02 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19971.1566057164.1@sss.pgh.pa.us> Date: Sat, 17 Aug 2019 11:52:44 -0400 Message-ID: <19972.1566057164@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk stan writes: > Just starting to expore setting up roles & useres. I ran this statement: > GRANT CONNECT ON DATABASE stan TO employee; > But yet \du still reports: > employee | Cannot login > What am I doing wrong? That's not a permissions issue, it's a role-property issue; the role is marked as not being allowed to be used as a login role. Probably because you said CREATE ROLE not CREATE USER. You can fix it with ALTER ROLE ... LOGIN or something along that line, check the ALTER ROLE page. regards, tom lane