Configuring agents as a non-root user

If you want to configure your agent as a non-root user, create a common group on the system and make each user a member of this group.

Before you begin

If you installed your agent as a root or non-root user and you want to configure the agent as the same user, no special action is required.

If you installed your agent as a selected user and want to configure the agent as a different user, create a common group on the system. Make all agent management users members of this common group. Transfer ownership of all agent files and directories to this group.
Note:
  • For the HTTP Server agent, if you configure the agent as a non-root user, the non-root user must have the same user ID as the user who started the IBM® HTTP Server. Otherwise, the agent has problems with discovering the IBM HTTP Server.
  • For the IBM Integration Bus agent, if IBM Integration Bus installation is a single-user deployment, use the same user ID as the user who installed IBM Integration Bus to configure the agent. Before you configure the agent, complete the following steps for this user ID.

Procedure

  1. Install your monitoring agents on Linux® or UNIX as described in Installing agents on Linux systems and Installing agents on UNIX systems.
  2. Run the ./secure.sh script with the group name of the non-root user to secure the files and set the file group ownership to the files.
    For example: ./secure.sh -g db2iadm1
  3. Configure your monitoring agents on Linux or AIX as necessary, see Configuring your environment.
  4. To update the system startup scripts, run the following script with root user or sudo user access: install_dir/bin/UpdateAutoRun.sh

What to do next

For more information about the ./secure.sh script, see Securing the agent installation files.

Use the same user ID for agent installation and upgrades.