To change the user that the vRealize Log Insight Linux agent runs, follow the steps below.
- Log into the guest OS as an Administrative user via Console or SSH.
- Stop the vRealize Log Insight agent and update services:
/etc/init.d/liagentd stop; /etc/init.d/liupdaterd stop
- Optional: Create a new user account with the desired access rights.
- 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.
Example: chown -R liagentuser:liagentuser /var/lib/loginsight-agent/
- 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.
Example: chown -R liagentuser:liagentuser /var/lib/loginsight-agent/
- Open /etc/init.d/liagentd in a text editor.
- Replace the value of User= with the desired user account.
Example: User="liagentuser"
- Save and close the file.
- Start the vRealize Log Insight agent and update services:
/etc/init.d/liagentd start; /etc/init.d/liupdaterd start