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 > problem about privilege, hurry!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-05, 08:40
wangzhonnew wangzhonnew is offline
Registered User
 
Join Date: Nov 2005
Location: Toronto
Posts: 65
problem about privilege, hurry!

what privilege should i give to user A if i want him access (update/insert/delete) and create/remove all the existing tables in the database without explicitly grant the privilege, and do not want him to create schemas?

i'm thinking

CONNECT TO SAMPLE;
GRANT DBADM ON DATABASE TO USER TAOEWANG;
REVOKE IMPLICIT_SCHEMA ON DATABASE FROM USER TAOEWANG;
CONNECT RESET;

not sure if it works.
thanks in advance
__________________
IBM Certified DBA for DB2 UDB
IBM Certified Database Developer for DB2 UDB
DB2 Tech Support, IBM Toronto Software Lab
Reply With Quote
  #2 (permalink)  
Old 12-09-05, 08:47
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I believe you'll have to explicitly define privileges for access to individual table.
Of course, revoke implicit schema if you do not want the user to create objects under new schema ..

But once you grant DBADM, then the user implicitly becomes a super-power in the db and you will not be able to revoke a specific privilege(implicit schema) as you have mentioned

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 12-09-05, 11:00
wangzhonnew wangzhonnew is offline
Registered User
 
Join Date: Nov 2005
Location: Toronto
Posts: 65
you are right it doesn't allow me to revoke IMPLICIT_SCHEMA once i got DBADM privilege.
seems the only way is writing script to grant the privilege for individule tables. :-\
__________________
IBM Certified DBA for DB2 UDB
IBM Certified Database Developer for DB2 UDB
DB2 Tech Support, IBM Toronto Software Lab
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