pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Murray Cumming <murrayc@murrayc.com>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Discovering privileges
Date: Sun, 20 Mar 2005 10:02:28 -0700
Message-ID: <20050320170228.GA19192@winnie.fuhr.org> (raw)
In-Reply-To: <1111337130.5820.7.camel@localhost.localdomain>
References: <1088799354.3319.110.camel@murrayc_debian>
	<Pine.LNX.4.56.0407021856250.5008@screw>
	<1111330231.5820.4.camel@localhost.localdomain>
	<20050320154247.GA18843@winnie.fuhr.org>
	<1111337130.5820.7.camel@localhost.localdomain>

On Sun, Mar 20, 2005 at 05:45:29PM +0100, Murray Cumming wrote:
> On Sun, 2005-03-20 at 08:42 -0700, Michael Fuhr wrote:
> >
> > You could look at pg_class.relacl,
> 
> I can't make much sense of that so far. Ca you give any clues on how
> that works?

See "Notes" in the GRANT documentation:

http://www.postgresql.org/docs/8.0/interactive/sql-grant.html

> >  but the "Access Privilege Inquiry
> > Functions" (has_table_privilege(), etc.) might be easier to use.
> > 
> > http://www.postgresql.org/docs/8.0/interactive/functions-info.html#FUNCTIONS-INFO-ACCESS-TABLE
> 
> Interesting. Is there anything like that for a group instead of a user?
> I'm most interested in privileges of a group.

Hmmm...not sure.  I suppose you could create a user that belongs
only to a particular group and check that user's privileges.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (6+ messages)

Message-ID: <20050320170228.GA19192@winnie.fuhr.org>
Permalink:  ../20050320170228.GA19192@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050320170228.GA19192@winnie.fuhr.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mike@fuhr.org, murrayc@murrayc.com
  Subject: Re: Discovering privileges
  In-Reply-To: <20050320170228.GA19192@winnie.fuhr.org>

* 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