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 > direct and indirect privileges

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-27-10, 06:09
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
direct and indirect privileges

Hi friendz,
I am just trying to understand direct and indirect privileges in db2. I have added a user in db2's administrators group and get the below output which is incorrect. Why does it show 'NO' to 'indirect DBADM Authority' when it actually get that becuase it has been granted SYSADM?
>db2 get authorizations

Administrative Authorizations for Current User

Direct SYSADM authority = NO
Direct SYSCTRL authority = NO
Direct SYSMAINT authority = NO
Direct DBADM authority = NO
Direct CREATETAB authority = YES
Direct BINDADD authority = NO
Direct CONNECT authority = NO
Direct CREATE_NOT_FENC authority = NO
Direct IMPLICIT_SCHEMA authority = NO
Direct LOAD authority = NO
Direct QUIESCE_CONNECT authority = NO
Direct CREATE_EXTERNAL_ROUTINE authority = NO
Direct SYSMON authority = NO

Indirect SYSADM authority = YES
Indirect SYSCTRL authority = NO
Indirect SYSMAINT authority = NO
Indirect DBADM authority = NO
Indirect CREATETAB authority = NO
Indirect BINDADD authority = NO
Indirect CONNECT authority = NO
Indirect CREATE_NOT_FENC authority = NO
Indirect IMPLICIT_SCHEMA authority = NO
Indirect LOAD authority = NO
Indirect QUIESCE_CONNECT authority = NO
Indirect CREATE_EXTERNAL_ROUTINE authority = NO
Indirect SYSMON authority = NO
Reply With Quote
  #2 (permalink)  
Old 09-27-10, 06:50
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by db2cap View Post
it actually get that becuase it has been granted SYSADM
This is no longer true beginning with DB2 9.7, where the authorization model has changed. You will get DBADM authority over the database that you can create as SYSADM, but you can only be explicitly granted DBADM authority over an existing database.
Reply With Quote
  #3 (permalink)  
Old 09-27-10, 06:56
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
understood but then why 'YES' for createtab? I am at V9.7 only.
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