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 > Newbie Auth Question(s)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-10, 11:11
cowzz cowzz is offline
Registered User
 
Join Date: Jun 2006
Posts: 5
Newbie Auth Question(s)

Hey Folks..
We have DB2 V9.5 running on AIX. How do I determine the SYSADM userid? Also, which system table do I query to determine what userid has auth to which table? I'm a DB2 z/OS DBA and don't see an equivalent table to SYSIBM.SYSTABAUTH. Thanks in advance.
Mike D.
Reply With Quote
  #2 (permalink)  
Old 04-21-10, 11:47
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Mike,

IBM - DB2 Version 9.5 for Linux, UNIX and Windows English manuals

This should be your first stop. I think in another thread someone has already pointed out a catalog views.

get dbm cfg -- should give you a list of groups and what access they have. From there if you must know ids in those groups you can do lsgroup group_name (low case)
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 04-21-10, 11:50
cowzz cowzz is offline
Registered User
 
Join Date: Jun 2006
Posts: 5
Thanks Cougar.. I did scour through the manuals, just didn't see anything that gave me userid's and table auths. Just sysschemaauth.
Reply With Quote
  #4 (permalink)  
Old 04-21-10, 12:05
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Check out the system catalog views (SYSCAT.*). You might be interested in SYSCAT.TABAUTH in particular.

SYSADM authority is usually assigned to a group, so you can check what group it is:

db2 get dbm cfg | grep SYSADM

then see who is in that group:

lsgroup whatevergroupitwas
Reply With Quote
  #5 (permalink)  
Old 04-21-10, 12:46
cowzz cowzz is offline
Registered User
 
Join Date: Jun 2006
Posts: 5
Thank you n i Must be an age thing. I totally missed the TABAUTH table. thanks again!
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