X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 53452D1CD7F for ; Fri, 4 Jun 2004 17:05:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 06290-01 for ; Fri, 4 Jun 2004 20:05:21 +0000 (GMT) Received: from web20804.mail.yahoo.com (web20804.mail.yahoo.com [216.136.226.193]) by svr1.postgresql.org (Postfix) with SMTP id EACE7D1CA43 for ; Fri, 4 Jun 2004 17:05:17 -0300 (ADT) Message-ID: <20040604200515.17790.qmail@web20804.mail.yahoo.com> Received: from [24.248.12.72] by web20804.mail.yahoo.com via HTTP; Fri, 04 Jun 2004 13:05:15 PDT Date: Fri, 4 Jun 2004 13:05:15 -0700 (PDT) From: Jeff Eckermann Subject: Re: Help with ODBC problem To: Chris Hoover , pgsql-odbc@postgresql.org In-Reply-To: <40C0B35B.5080004@sermonaudio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=OFFERS_ETC X-Spam-Level: X-Archive-Number: 200406/5 X-Sequence-Number: 4075 --- Chris Hoover 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/