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 Privileges

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-11, 09:42
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
DB2 Privileges

Hello All,

Is there any way to find out , user who has revoke/grant db privileges like (connect) to other user.

We faced a situation where connect privilege was revoked from a user , but not sure who revokes the same.

the system is a legacy system - db2v7.1.

Irrespective of version , is it possible to find out the same?

Thanks for your help in advance.

Regards
Meena.s
Reply With Quote
  #2 (permalink)  
Old 06-02-11, 10:35
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
There are several views in the catalog (syscat) that show authorizations (they usually end in "AUTH") . There is a different view for each object type (e.g. TABAUTH is for table authorizations-select, insert, delete, etc). Each of these views should have a column that is like 'GRANT'. Persons with this authorization can perform the grant on the object for which they have the grant authority.

Andy
Reply With Quote
  #3 (permalink)  
Old 06-02-11, 10:58
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
check syscat.dbauth, have you revoke connect priviledges from public in ur db coz connect to db is default for user, u can get ur info in syscat.dbauth table i believe.

group kindly correct on this

regds
Paul
Reply With Quote
  #4 (permalink)  
Old 06-02-11, 11:21
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
@ Andy : Yup as you said we have syscat tables for the entries, but here need to know when the connect privilege has been revoked from the user (not public) and who has revoked the same?

Is there any possibility for this.
Reply With Quote
  #5 (permalink)  
Old 06-02-11, 11:23
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
@ Paul : Syscat.dbauth will have privilege info and grantor ,grantee related information only.
Reply With Quote
  #6 (permalink)  
Old 06-02-11, 11:41
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I usually do not need to look in the syscat catalog for authorizations so i am not 100% on what is there. That is what manuals are created for. Looking in the V9.5 manual (I assume V7 is similar), to grant/revoke connect privilege the user needs to be either DBADM or SYSADM.

Andy
Reply With Quote
  #7 (permalink)  
Old 06-03-11, 05:02
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Thanks Andy for your reply.

Yup. Users who hold sysadm/dbadm privileges can revoke the connect privilege.
In our case , I have checked that too.

Only Instance id holds that privilege. But some of the users holds sudo su access to the instance.

So any of them have a chance to revoke it . Is there any possibility to fine who has revoked it ?
Reply With Quote
  #8 (permalink)  
Old 06-06-11, 10:51
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You would have to check the OS logs to see who used sudo around the time that the privileges were revoked.

Andy
Reply With Quote
  #9 (permalink)  
Old 06-07-11, 04:18
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Thanks Andy for your updates.
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