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 discovering the
IBM HTTP Server.
Procedure
- Install your monitoring agents on Linux or AIX® as described in Installing agents on Linux systems and Installing agents on AIX systems.
- 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
- Configure your monitoring agents on Linux or AIX as necessary, see Configuring your environment.
- 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.