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 > connect privilege problem for new user!!!!!!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-06, 21:52
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
connect privilege problem for new user!!!!!!!!

I am working with DB2 v8.2.2 and AIX 5.3

Hi,

after creating new user in the system it seems by default it has "connect" privilage to database (db2 connect to xxxxx was successfull), I tried to revoke the privilege I get error that:

SQL0556N An attempt to revoke a privilege from "MMTEST" was deniede because
"MMTEST" does not hold this privilege. SQLSTATE=42504.

could you please somebody tell me how come?

how can I revoke the "connect" privilege from new user?

Thank you in advance for your help.
Reply With Quote
  #2 (permalink)  
Old 10-23-06, 09:50
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Check the privileges of the PUBLIC "group".
Reply With Quote
  #3 (permalink)  
Old 10-23-06, 09:57
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by n_i
Check the privileges of the PUBLIC "group".
Hi n_i

when I revoke the connect privilege from public yes mmtest userid does not have privilege but it effects to all userids in our environment (am I right?) that I do not like it, I want revoke just "MMTEST" userid.
Reply With Quote
  #4 (permalink)  
Old 10-23-06, 10:16
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
By default public has connect preveleges.
If you want to revoke connect prevelege to a perticular user you have to
1. Revoke connect from public.
2. Frabt connect to only people that can be conencted.

Hope it helps
Reply With Quote
  #5 (permalink)  
Old 10-23-06, 10:18
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by koganti
By default public has connect preveleges.
If you want to revoke connect prevelege to a perticular user you have to
1. Revoke connect from public.
2. Frabt connect to only people that can be conencted.

Hope it helps

Thank you all for your help.
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