pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
A user atribute question
3+ messages / 3 participants
[nested] [flat]

* A user atribute question
@ 2019-08-17 15:45  stan <stanb@panix.com>
  0 siblings, 2 replies; 3+ messages in thread

From: stan @ 2019-08-17 15:45 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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?

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: A user atribute question
@ 2019-08-17 15:50  Rob Sargent <robjsargent@gmail.com>
  parent: stan <stanb@panix.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Rob Sargent @ 2019-08-17 15:50 UTC (permalink / raw)
  To: stan <stanb@panix.com>; +Cc: pgsql-general@lists.postgresql.org



> On Aug 17, 2019, at 9:45 AM, stan <stanb@panix.com> wrote:
> 
> 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?
> 
> -- 
> "They that would give up essential liberty for temporary safety deserve
> neither liberty nor safety."
>                        -- Benjamin Franklin
> 
> 
Does the role have the login option set?





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: A user atribute question
@ 2019-08-17 15:52  Tom Lane <tgl@sss.pgh.pa.us>
  parent: stan <stanb@panix.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2019-08-17 15:52 UTC (permalink / raw)
  To: stan <stanb@panix.com>; +Cc: pgsql-general@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-08-17 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-08-17 15:45 A user atribute question stan <stanb@panix.com>
2019-08-17 15:50 ` Rob Sargent <robjsargent@gmail.com>
2019-08-17 15:52 ` Tom Lane <tgl@sss.pgh.pa.us>

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