From: Peter Dockweiler <pdo@wikon.de>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: security via views
Date: Wed, 27 Apr 2005 18:01:46 +0200
Message-ID: <200504271801.47297.pdo@wikon.de> (raw)
In-Reply-To: <20050427155202.GA20043@nibiru.borg.metux.de>
References: <20050427155202.GA20043@nibiru.borg.metux.de>
Hello,
yes this works. Just drop the rights on the table and grand the rights on the
view.
Peter
Am Mittwoch, 27. April 2005 17:52 schrieb Enrico Weigelt:
> Hi folks,
>
> we've got a larger project with several subsystems, which should
> run in their own security context / users.
>
> Most of the database access works over views and functions.
> For functions its possible to run them with separate privileges
> than the calling user. But is this also possible with views ?
> I've noticed that for views also GRANT is necessary (AFAIK a
> view is nothing else than a table with appropriate RULEs).
> Does it work to grant some user access to his own view, but
> not to the tables where the view works on ?
>
>
> thx
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-admin@postgresql.org
Cc: pdo@wikon.de
Subject: Re: security via views
In-Reply-To: <200504271801.47297.pdo@wikon.de>
References: <20050427155202.GA20043@nibiru.borg.metux.de> <200504271801.47297.pdo@wikon.de>
* 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