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 > I've a doubts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-04, 19:32
Bigas_fabio Bigas_fabio is offline
Registered User
 
Join Date: Feb 2004
Location: SP
Posts: 2
Red face I've a doubts

Hi .

I need that a user don't have permissions to Create objects in Database.
The user (XPTO) don't have grants to CREATETAB and CREATEIN and USE TABLESPACE .
but when ,"in test ", I make a connect with this user (XPTO) and make a create table ( ... ) , the table will be created .
what can I do to don't allow that user (XPTO) can create an object in a Database .


Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-10-04, 20:49
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: I've a doubts

Revoke the privileges from PUBLIC. By default PUBLIC has the privileges to connect to database, create table etc. thus every new user inherits them, so revoking from PUBLIC will solve your problem.

dollar

Quote:
Originally posted by Bigas_fabio
Hi .

I need that a user don't have permissions to Create objects in Database.
The user (XPTO) don't have grants to CREATETAB and CREATEIN and USE TABLESPACE .
but when ,"in test ", I make a connect with this user (XPTO) and make a create table ( ... ) , the table will be created .
what can I do to don't allow that user (XPTO) can create an object in a Database .


Thanks.
Reply With Quote
  #3 (permalink)  
Old 02-11-04, 12:06
Bigas_fabio Bigas_fabio is offline
Registered User
 
Join Date: Feb 2004
Location: SP
Posts: 2
Thumbs up

Thanks dollar.
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