How to change the vRealize Log Insight Linux agent user after installation or Upgrade
search cancel

How to change the vRealize Log Insight Linux agent user after installation or Upgrade

book

Article ID: 340398

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This article provides steps on changing the user that the vRealize Log Insight Linux agent runs as after installation or upgrade.

Environment

VMware vRealize Log Insight 4.7.x
VMware vRealize Log Insight 4.8.x

Resolution

To change the user that the vRealize Log Insight Linux agent runs, follow the steps below.
  1. Log into the guest OS as an Administrative user via Console or SSH.
  2. Stop the vRealize Log Insight agent and update services:
/etc/init.d/liagentd stop; /etc/init.d/liupdaterd stop
  1. Optional: Create a new user account with the desired access rights.
  2. Grant the new or desired user rights to the /var/lib/loginsight-agent/ directory:
chown -R newuser:newuser /var/lib/loginsight-agent/

Note: Replace newuser with the desired user account.

Examplechown -R liagentuser:liagentuser /var/lib/loginsight-agent/
  1. Grant the new or desired user rights to the /var/log/loginsight-agent/ directory:
chown -R newuser:newuser /var/log/loginsight-agent/
 
Note: Replace newuser with the desired user account.

Examplechown -R liagentuser:liagentuser /var/lib/loginsight-agent/
  1. Open /etc/init.d/liagentd in a text editor.
  2. Replace the value of User= with the desired user account.
Example: User="liagentuser"
  1. Save and close the file.
  2. Start the vRealize Log Insight agent and update services:
/etc/init.d/liagentd start; /etc/init.d/liupdaterd start