pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: stan <stanb@panix.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: A user atribute question
Date: Sat, 17 Aug 2019 11:52:44 -0400
Message-ID: <19972.1566057164@sss.pgh.pa.us> (raw)
In-Reply-To: <20190817154502.GA17340@panix.com>
References: <20190817154502.GA17340@panix.com>

stan <stanb@panix.com> 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





view thread (3+ messages)

Message-ID: <19972.1566057164@sss.pgh.pa.us>
Permalink:  ../19972.1566057164@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19972.1566057164@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, stanb@panix.com
  Subject: Re: A user atribute question
  In-Reply-To: <19972.1566057164@sss.pgh.pa.us>
  References: <20190817154502.GA17340@panix.com> <19972.1566057164@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox