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 > how to create user in db2 with limited priviliges

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-30-11, 03:27
ravichandrapratap ravichandrapratap is offline
Registered User
 
Join Date: Dec 2010
Posts: 75
how to create user in db2 with limited priviliges

Dear all,
i am using db2 9.1(linux),
aprat from db2inst1, i want to create another user with limited priviliges,
pls help me out.

i created one user namely brcp and i add tat user to db2grp1 , i tried to login through that user and executed db2 command
it is db2 is not found ??
i am unable to found .profile in /home/db2inst1

1)what are the additional activites i have to do???


2)GRANT DELETE ON TABLE SCHEMA_NAME.TABLE_NAME TO USER RAMU

2a)before running above command what are activities i have to perform on user RAMU
2b)from where (Root or db2inst1 and path ) i have to run the above command???

Last edited by ravichandrapratap; 12-30-11 at 03:37.
Reply With Quote
  #2 (permalink)  
Old 12-31-11, 08:06
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
DB2 uses operating system authentication. You must add the user via a Linux command such as the useradd command. The home directory of If you have questons about this, contact a Linux system administrator or a Linux forum.

If you already created the new Linux user account with with useradd, you will probably want to copy the .bashrc and .bash_profile files from db2inst1 to your new user home directory, assuming you are using the bash shell (default shell for Linux).
__________________
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 01-03-12, 00:46
ravichandrapratap ravichandrapratap is offline
Registered User
 
Join Date: Dec 2010
Posts: 75
Quote:
Originally Posted by Marcus_A View Post
DB2 uses operating system authentication. You must add the user via a Linux command such as the useradd command. The home directory of If you have questons about this, contact a Linux system administrator or a Linux forum.

If you already created the new Linux user account with with useradd, you will probably want to copy the .bashrc and .bash_profile files from db2inst1 to your new user home directory, assuming you are using the bash shell (default shell for Linux).
Thankuuuuuuuuuuuuu sooooooooo much Marcus, its working fine .....
Reply With Quote
  #4 (permalink)  
Old 01-03-12, 02:11
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
I would NEVER do that :
you will probably want to copy the .bashrc and .bash_profile files from db2inst1 to your new user home directory, assuming you are using the bash shell (default shell for Linux).

if db2inst1 needs some specific settings, these will also be set for the other userid
the best would be to create a user instance for this user, so he will get his own profile and settings and will be independant from db2Inst1
__________________
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