Re: A user atribute question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: stan <stanb(at)panix(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: A user atribute question
Date: 2019-08-17 15:52:44
Message-ID: 19972.1566057164@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

stan <stanb(at)panix(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2019-08-17 15:52:59 Re: Question on pgwatch
Previous Message Rob Sargent 2019-08-17 15:50:39 Re: A user atribute question