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 > groups and users

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-09-08, 01:59
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
groups and users

Hi all,
m using db2 v8.1 ESE on windows.

1) i created a group named 'db2users' on my db2 server and have added users in this group. now i have added this group name in a 'DB GROUPS' of my database but no user in this group is able to connect to the database even after giving them the connect privilege.
is doing this much sufficient or need to do something else also?

2) to whom the default public group gives access to?
is it necessary to remove all privileges from the pulic group first and then continue adding other groups?
Reply With Quote
  #2 (permalink)  
Old 08-09-08, 02:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You need to grant access to the group with an SQL GRANT statement. For example:

grant select, insert, update, delete on db2inst1.department to group db2users;

In V8 connect access is granted to public. That only allows a connection, not access to any tables.

Please refer to the SQL Reference Vol 2 for information on the GRANT statement.
__________________
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
  #3 (permalink)  
Old 08-09-08, 02:15
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
Marcus i have given them all the database privileges via control center...will this not work?
Reply With Quote
  #4 (permalink)  
Old 08-09-08, 02:40
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I don't know what you actually did. Check out the data in the following views:

syscat.tableauth
syscat.dbauth
__________________
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
  #5 (permalink)  
Old 08-09-08, 05:00
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
now see, i have created a group named 'db2users' , double clicked it. then it asks you for database privilege with number of checkboxes. here i have given the only privilege of 'connect to database'. nothing else had i done. now the user of this group is still not able to connect to this database. why so? it is throwing error of security.
Reply With Quote
  #6 (permalink)  
Old 08-09-08, 08:39
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
hey its done...!!! it had to do with LDAP settings in the profile registry. Thanks...
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