pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: Chris Hoover <revoohc@sermonaudio.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Help with ODBC problem
Date: Fri, 4 Jun 2004 13:05:15 -0700 (PDT)
Message-ID: <20040604200515.17790.qmail@web20804.mail.yahoo.com> (raw)
In-Reply-To: <40C0B35B.5080004@sermonaudio.com>

--- Chris Hoover <revoohc@sermonaudio.com> wrote:
> I am in need of some help.  We are looking at
> rolling out a reporting 
> tool to our users and need to make sure that the
> users only see the 
> objects we give them access to. 
> 
> To start testing, I have created a new user and
> group to test with.  I 
> then created a view to use and gave the group select
> access to this view 
> only and put the user into this group.  However,
> when we pull up the 
> odbc connection from a client machine (windows), we
> see all tables 
> listed and then the single view.  While this test
> user can not select 
> from the tables, he can see them.  This is a problem
> for us since we do 
> not want our end users to see any portion of our
> actual schema.
> 
> How do I get the odbc/db configured so that the only
> odbc objects the 
> end user sees are the views we give them access? 
> 

Create a separate schema for each user, or class of
users, that you want to have limited access.  Put all
of the objects that you want them to have access to
into the relevant schema(s).  Then, in the "connect
settings" box in the DSN, enter the command "set
search_path to myschema, public;" (or leave out public
if you want).  If you are connecting using code,
rather than a DSN, then just issue that command
directly after connecting.

That will restrict users to seeing only those objects
which you want them to see.  If you revoke their
access permissions to the public schema, and only
grant permissions on the one special schema, plus
tables etc., then you will lock the whole thing up
tight.

> Thanks,
> 
> Chris
> 
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: don't forget to increase your free space map
settings



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 



view thread (4+ messages)  latest in thread

Message-ID: <20040604200515.17790.qmail@web20804.mail.yahoo.com>
Permalink:  ../20040604200515.17790.qmail@web20804.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040604200515.17790.qmail@web20804.mail.yahoo.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-odbc@postgresql.org
  Cc: jeff_eckermann@yahoo.com, revoohc@sermonaudio.com
  Subject: Re: Help with ODBC problem
  In-Reply-To: <20040604200515.17790.qmail@web20804.mail.yahoo.com>
  References: <40C0B35B.5080004@sermonaudio.com> <20040604200515.17790.qmail@web20804.mail.yahoo.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