mirror of https://github.com/tLDP/LDP
Added instructions for putting existing users in as DB2 system administrators
This commit is contained in:
parent
40c658a780
commit
5ea3604dfd
|
@ -26,9 +26,14 @@
|
|||
<surname>Scott</surname>
|
||||
<contrib>Conversion to DocBook XML.</contrib>
|
||||
</othercredit>
|
||||
|
||||
<authorinitials>idmh</authorinitials>
|
||||
<revhistory>
|
||||
<revision>
|
||||
<revnumber>1.1.5</revnumber>
|
||||
<date>2005-10-31</date>
|
||||
<authorinitials>idmh</authorinitials>
|
||||
<revremark>Updated user setup instructions for non-DB2 created users.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.1.4</revnumber>
|
||||
<date>2005-07-13</date>
|
||||
|
@ -982,7 +987,47 @@ specifies to create a new DAS user on each machine in the cluster, and
|
|||
that user already exists on any of the participating computers, then
|
||||
that user must have the same primary group as the new DAS
|
||||
user.</para></listitem>
|
||||
</itemizedlist></para></sect4></sect3></sect2></sect1>
|
||||
</itemizedlist></para></sect4></sect3>
|
||||
<sect3>
|
||||
<title>Adding existing users as DB2 users</title>
|
||||
<para>To enable existing system users to act as DB2 administrators, you must
|
||||
make a few modifications to the user accounts:</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Add your user to the db2grp1 group. The database manager SYSADM_GROUP
|
||||
configuration parameter controls who has that level of access for all
|
||||
databases in the that instance. You can determine what group is set
|
||||
as the SYSADM group by entering:
|
||||
<screen>db2 get dbm cfg | grep SYSADM_GROUP</screen>
|
||||
</para>
|
||||
<para>By default, DB2 sets this as the db2grp1 group. To add the user
|
||||
to the SYSADM group, modify the /etc/groups file (as root), adding
|
||||
the user account ID to the line for the DB2 system admin group. For example:
|
||||
<screen>db2grp1:x:102:jackc,ellenp,frankj</screen>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Update the user's profile by adding the following lines to the .bashrc file
|
||||
in the home directory
|
||||
<screen># The following three lines have been added by the DB2 SYSADM.
|
||||
if [ -f /home/db2inst1/sqllib/db2profile ]; then
|
||||
. /home/db2inst1/sqllib/db2profile
|
||||
fi</screen></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>If you want to add desktop icons for the user account, run the command:
|
||||
<screen>/opt/IBM/db2/V8.1/bin/db2icons username</screen>
|
||||
where username is replaced by the user account you wish to enable.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>After installation, if you wish to grant or revoke access
|
||||
to databases (or other objects), use the "User and Groups"
|
||||
section of the Control Center or the GRANT and REVOKE SQL
|
||||
statements.) For example, by default, the sample database
|
||||
grants a number of privileges to "PUBLIC".</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</sect3></sect2></sect1>
|
||||
<sect1 id='installing'><title>Installing DB2 UDB Version 8.2</title>
|
||||
<sect2><title>db2setup installation</title>
|
||||
<formalpara><title>Prerequisites</title>
|
||||
|
|
Loading…
Reference in New Issue