Re: Discovering privileges

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Discovering privileges
Дата
Msg-id 20050320170228.GA19192@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Discovering privileges  (Murray Cumming <murrayc@murrayc.com>)
Ответы per-database groups? (was Discovering privileges)  (Murray Cumming <murrayc@murrayc.com>)
Список pgsql-interfaces
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/


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Murray Cumming
Дата:
Сообщение: Re: Discovering privileges
Следующее
От: Gabor Berenyi
Дата:
Сообщение: fwd: libpq