pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: privileges oddity
Date: Thu, 6 Aug 2020 14:53:30 -0400
Message-ID: <20200806185329.GC29590@tamriel.snowman.net> (raw)
In-Reply-To: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com>
References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com>

Greetings,

* Scott Ribe (scott_ribe@elevated-dev.com) wrote:
> when user akanzler tries to run query "SELECT * FROM zoewang.sometable...", it triggers this error:
> 
> 2020-08-06 17:27:27.664 UTC [15914]: [3] user=akanzler,db=risk_oltp_prod,app=[unknown],client=10.8.170.24: ERROR:  permission denied for schema zoewang at character 15
> 
> --- YET ---
> 
> risk_oltp_prod=# \dn+ zoewang
>                      List of schemas
>  Name   |  Owner   |   Access privileges    | Description
> ---------+----------+------------------------+-------------
> zoewang | srv_risk | srv_risk=UC/srv_risk  +|
>         |          | akanzler=UC/srv_risk  +|
>         |          | srv_risk_ro=U/srv_risk |
> (1 row)
> 
> HUH? (And the user also has all privs on all the tables in the schema...)

Are you 110% sure that you're actually connecting to the same instance
in both cases (I'd say database too, but hopefully psql isn't lying to
you about that on your prompt, but maybe double-check anyway...).

Have you re-tried from the app (maybe someone fixed it in the
meantime)?

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (31+ messages)  latest in thread

Message-ID: <20200806185329.GC29590@tamriel.snowman.net>
Permalink:  ../20200806185329.GC29590@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20200806185329.GC29590@tamriel.snowman.net

 · 

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: sfrost@snowman.net, scott_ribe@elevated-dev.com
  Subject: Re: privileges oddity
  In-Reply-To: <20200806185329.GC29590@tamriel.snowman.net>
  References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com> <20200806185329.GC29590@tamriel.snowman.net>

* 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