pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: privileges oddity
Date: Fri, 7 Aug 2020 13:27:26 -0600
Message-ID: <997A0678-B203-432F-AF7D-7ADB6415C28A@elevated-dev.com> (raw)
In-Reply-To: <99994f76-5a45-09a1-c6e3-4021cb4bd385@aklaver.com>
References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com>
	<20200806185329.GC29590@tamriel.snowman.net>
	<DE16D13F-85A8-450C-92E1-643254A38E2D@elevated-dev.com>
	<75f2f28c-9121-c3d0-0c9a-f9b16ef337fb@aklaver.com>
	<B59F3687-372E-49EE-A200-938E3699A074@elevated-dev.com>
	<3DF00E97-6D2F-4329-AA0E-9CC2CCD41A8E@elevated-dev.com>
	<1ceb2a2f-50a0-ef7c-1849-6fa75dd61d64@aklaver.com>
	<5AA78DA8-746A-4407-AC00-B1463451CAD0@elevated-dev.com>
	<7efe4d40-5f8d-f3bb-45ff-fd00f3beba84@aklaver.com>
	<140C61E1-282D-42C2-8349-B5D11792DFCE@elevated-dev.com>
	<2793218.1596825900@sss.pgh.pa.us>
	<DA4A1A92-75A5-4DBE-AE71-33411213D112@elevated-dev.com>
	<99994f76-5a45-09a1-c6e3-4021cb4bd385@aklaver.com>

> On Aug 7, 2020, at 1:08 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> 
> "Using this command, it is possible to either add privileges or restrict one's privileges. If the session user role has the INHERIT attribute, then it automatically has all the privileges of every role that it could SET ROLE to; in this case SET ROLE effectively drops all the privileges assigned directly to the session user and to the other roles it is a member of, leaving only the privileges available to the named role. On the other hand, if the session user role has the NOINHERIT attribute, SET ROLE drops the privileges assigned directly to the session user and instead acquires the privileges available to the named role.
> "

So it would only have removed privs if I had used set role in the session, which I am not.







view thread (31+ messages)  latest in thread

Message-ID: <997A0678-B203-432F-AF7D-7ADB6415C28A@elevated-dev.com>
Permalink:  ../997A0678-B203-432F-AF7D-7ADB6415C28A@elevated-dev.com/
Also on:    postgresql.org/message-id/997A0678-B203-432F-AF7D-7ADB6415C28A@elevated-dev.com

 · 

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: scott_ribe@elevated-dev.com, adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us
  Subject: Re: privileges oddity
  In-Reply-To: <997A0678-B203-432F-AF7D-7ADB6415C28A@elevated-dev.com>
  References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com> <20200806185329.GC29590@tamriel.snowman.net> <DE16D13F-85A8-450C-92E1-643254A38E2D@elevated-dev.com> <75f2f28c-9121-c3d0-0c9a-f9b16ef337fb@aklaver.com> <B59F3687-372E-49EE-A200-938E3699A074@elevated-dev.com> <3DF00E97-6D2F-4329-AA0E-9CC2CCD41A8E@elevated-dev.com> <1ceb2a2f-50a0-ef7c-1849-6fa75dd61d64@aklaver.com> <5AA78DA8-746A-4407-AC00-B1463451CAD0@elevated-dev.com> <7efe4d40-5f8d-f3bb-45ff-fd00f3beba84@aklaver.com> <140C61E1-282D-42C2-8349-B5D11792DFCE@elevated-dev.com> <2793218.1596825900@sss.pgh.pa.us> <DA4A1A92-75A5-4DBE-AE71-33411213D112@elevated-dev.com> <99994f76-5a45-09a1-c6e3-4021cb4bd385@aklaver.com> <997A0678-B203-432F-AF7D-7ADB6415C28A@elevated-dev.com>

* 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