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 > check result of REVOKE!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-10, 03:17
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
check result of REVOKE!

Wow, I did not know that:
When you grant DBADM rights to a user and REVOKE that later on all kind of priviliger still exist and have to be REVOKED as well. Here is the result (db2look -d sample -xd) of the "leftovers" after a grant & revoke of user "dick".
Code:
GRANT CREATETAB 	ON DATABASE  TO USER "DICK    " ;
GRANT BINDADD 		ON DATABASE  TO USER "DICK    " ;
GRANT CONNECT 		ON DATABASE  TO USER "DICK    " ;
GRANT CREATE_NOT_FENCED ON DATABASE  TO USER "DICK    " ;
GRANT IMPLICIT_SCHEMA 	ON DATABASE  TO USER "DICK    " ;
GRANT LOAD 		ON DATABASE  TO USER "DICK    " ;
GRANT QUIESCE_CONNECT 	ON DATABASE  TO USER "DICK    " ;
This is not a bug, its documented behaviour DB2 Database for Linux, UNIX, and Windows but you should be aware! So run that db2look report from time-to-time an check for things from which you thought you took care of that....
Reply With Quote
  #2 (permalink)  
Old 06-04-10, 09:18
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Yeap, many people also ignore the fact, or simply do not know, that when they create a new SCHEMA using a CREATE TABLE in a new schema. It gives all the other users ability to create objects in that schema as well.

Thus, you should always define a new schema prior to building objects in it.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
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