If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Permissions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-10, 16:26
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
Permissions

I am in db2 V9.5 FP1. Is it possible to revoke select, insert, update, delete access on one table from a user who has dbadm authority ?
Reply With Quote
  #2 (permalink)  
Old 01-15-10, 04:39
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

afaik this can only be done in DB2 9.7.

nvk
Reply With Quote
  #3 (permalink)  
Old 01-15-10, 08:36
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
Thanks for your response. Can you please tell me how in 9.7 can we make it work?
Reply With Quote
  #4 (permalink)  
Old 01-15-10, 09:08
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
There was at Chat with the lab about new DB2 9.7 Features.
DB2 9.7 Overview

Could find anything on IBMs Website (which is really a mess). Only the grant in the documentation:
IBM DB2 9.7 for Linux, UNIX and Windows Information Center
grant dbadm without dataaccess ...
Reply With Quote
  #5 (permalink)  
Old 01-15-10, 09:47
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
I wanted to restrict the access only on one table. "Without Data access" option would restrict the access on all the tables.
Reply With Quote
  #6 (permalink)  
Old 01-15-10, 10:00
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Yes,
the dbadm without access has to be treated as a normal user and needs explicit grants for each table and view.
Reply With Quote
  #7 (permalink)  
Old 01-15-10, 11:57
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
we wanted dbadm to have accessctrl authority. So as to what you are saying, grant dbadm to a user and revoke the dataaccess authority and individually grant select, insert, update, delete to all the tables to that user except that specific table.

But the issue is dbadm can grant select, insert, update, delete to that table to himself.
Reply With Quote
  #8 (permalink)  
Old 01-18-10, 03:59
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
The other Option would be Label Based Access Control (LBAC), but this Feature requires an additional License.
The User would be able to read the Table, but no data would be returned. Also some Queries might return different results, if they are run by different users.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On