From: Marko Ristola <marko.ristola@kolumbus.fi>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Goeke, Tobias <TGoeke@electronicpartner.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Ignoring the limited user-rights by using ODBC
Date: Wed, 30 Mar 2005 21:47:43 +0300
Message-ID: <424AF44F.4040703@kolumbus.fi> (raw)
In-Reply-To: <200503302014.20728.peter_e@gmx.net>
References: <72F45784D0E25A429B21E156EAEFE5E3E54BD3@muenchen.ep.de>
<200503302014.20728.peter_e@gmx.net>
I remember from some other databases, that
the schema is not for security. It is for application
logic:
If you have marko.branch and users.branch
tables, you can link to both by
select * from marko.branch
union
select * from users.branch
You can revoke rights from the tables with the following commands:
revoke all from marko on marko.branch;
revoke all from marko on users.branch;
After these, "marko" user is not able to read, or write into the tables.
You can play with the schema like this with ODBC:
set search_path to marko,public; -- the new schema is "marko"
select * from branch; /* points into marko.branch */
set search_path to users,public;
select * from branch; /* points into users.branch */
Read or write rights (grant/revoke) for the table and
visibility (naming, search path, namespace, schema) of the table
name are a different thing.
Marko Ristola
Peter Eisentraut wrote:
>Goeke, Tobias wrote:
>
>
>>If i connect to the database via obdc with this user, all schemes are
>>shown. So i am able to select all the tables and views e.g. in excel,
>>although the user isn't autorized.
>>
>>
>
>It is not possible that the ODBC driver can circumvent privileges that
>would otherwise apply. Please provide a detailed way to reproduce your
>problem.
>
>Note that what the \d commands in psql show does not necessarily define
>the scope of a user's access privileges. It merely shows what might be
>of interest to the user.
>
>
>
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-odbc@postgresql.org
Cc: marko.ristola@kolumbus.fi, peter_e@gmx.net, TGoeke@electronicpartner.de
Subject: Re: Ignoring the limited user-rights by using ODBC
In-Reply-To: <424AF44F.4040703@kolumbus.fi>
References: <72F45784D0E25A429B21E156EAEFE5E3E54BD3@muenchen.ep.de> <200503302014.20728.peter_e@gmx.net> <424AF44F.4040703@kolumbus.fi>
* 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