Creating Db2 users before you connect to a local Db2 server

If you plan to connect to a local Db2 server, you might want to create Db2 instance users before you install the Cloud APM server to adhere to your organization's database server administration policies or to specify custom passwords. You must assign the Db2 users to their primary groups when you create each user ID.

About this task

After you select to install the Db2 database during Cloud APM server installation, a Db2 server is created with Db2 instance users dasusr1, db2apm, and db2fenc1, itmuser, and groups dasadm1, db2iadm1, db2fadm1. The installation assigns users to groups:
  • dasusr1 user is assigned to the dasadm1 group
  • db2apm user is assigned to the db2iadm1 and dasadm1 groups
  • db2fenc1 user is assigned to the db2fadm1 group
  • itmuser user is assigned to the dasadm1 group
Instead of user and group creation during server installation, these instructions have you create the Db2 instance users before you install the Cloud APM server and Db2 server. When you create each user, you must assign the user to its primary group and update the default user password for each user in the install.properties file. The users can also be added to other groups that are used in your environment.
Note: The Cloud APM server does not support custom Db2 usernames and groups for a local Db2 server so you must create the Db2 user names and groups listed in the procedure.

Procedure

As the root user, complete these steps:

  1. Create the primary groups.
    For example,
    groupadd dasadm1
    groupadd db2iadm1
    groupadd db2fadm1
  2. Create the user IDs and assign each user ID to a primary group.
    For example,
    useradd -g dasadm1 -m dasusr1
    useradd -g db2iadm1 -m db2apm
    useradd -g db2fadm1 -m db2fenc1
    useradd  -g dasadm1 -m itmuser
  3. Set the passwords for the user IDs.
    For example,
    passwd dasusr1
    passwd db2apm
    passwd db2fenc1
    passwd itmuser
  4. Update the passwords in the APM_server_install_image/install.properties file for each user.

What to do next

Review the options and requirements in Preparing to install your server to help you plan your installation of the Cloud APM server.