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 > db2 users under db2cc and data studio

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-09-11, 04:09
badkuk badkuk is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
db2 users under db2cc and data studio

Hi All,

Pardon my inquiry if it seems a bit noobish...please let me know where i can move it to...

i've read in the docs that DB2 uses OS accounts/authentication by default for authenticating users, so i'm a little confused as to the behavior of db2cc and IBM data studio...i.e.

-- users added using db2cc/data studio don't show up at the OS level
-- users added at the OS level don't show up under db2cc/IBM data studio


What gives? i was expecting that the list of users in db2cc/data studio to be consistent with the OS accounts. Is there some sort of table/view/etc that DB2 maintains?

i am running DB2-C 9.7.4 on Windows btw.

tia
Reply With Quote
  #2 (permalink)  
Old 09-09-11, 04:47
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
no db2 does not maintain info about uid/pw
for all connect users there must be somewhere an os user mapping : local - at server - at ldap .....
in the doc there is a lot to read about this
DB2 security model overview
or you could first attend a course at
DB2 University to learn the basics of DB2
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 09-09-11, 06:37
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can, but you don't need to add users or groups in DB2. They automatically get added to the DB2 system catalog (TABAUTH, DBAUTH, etc) when you issue a SQL GRANT to a user or group. The actual password authentication is handled by the OS (so the account must exist in the OS), but INSERT, UPDATE, SELECT, CONNECT, etc authorities within DB2 are handled with SQL GRANT, REVOKE, etc.

GRANTS to user or group accounts can be made within DB2 before the accounts are created in the OS. They only get checked when authentication takes place.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 09-09-11, 16:37
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by przytula_guy View Post
DB2 University to learn the basics of DB2

Another DB2 learning site. Unbelievable.
Reply With Quote
  #5 (permalink)  
Old 09-12-11, 03:23
badkuk badkuk is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Thanks all for clearing that up: authentication at OS level, rights/privileges defined in DB2


Given this scenario:

- created OS user spongebob
- granted access rights/privileges in DB2 for spongebob
- deleted OS user spongebob
- created new OS user spongebob

...would the new spongebob be given the same access rights/privileges as the old spongebob? Should the SOP be to manually revoke all rights/privileges of all deleted OS accounts, or is there a way of automating the process?

Thanks
Reply With Quote
  #6 (permalink)  
Old 09-12-11, 03:30
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
drop /create os uid : db2 will never clean up grant - even if the user does not exist
error will be presented when referenced
otherwise the new user will inherit the existing grant
no automated cleanup exists.. os uid list should be compared with db2 uid grant list and cleanup to be done..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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