Follow these steps to run EM Client as a non-root user. You must run emmonitor and emmonitorrest as a root user.
Platforms: Linux and Redhat
- Uninstall any previous versions of EM Agent and EM Publisher packages.
- Log on to the system as a root user.
-
Install EM Publisher and EM Agent packages in the /opt/teradata/client/em/ file:
rpm -ivh em-publisher-16.00.xx.xx-1.x86_64.rpm
rpm -ivh em-agent-16.00.xx.xx-1.x86_64.rpm
- Run the emserviceconfig.sh script: /opt/teradata/client/em/bin/emserviceconfig.sh
- Stop all the services: opt/teradata/client/em/bin/emstopall.sh
- [Optional] Create a group and a non-root user if needed. For example, groupadd admin or useradd -G admin nonroot
-
Change user and group permissions for the following paths as a root user:
/etc/opt/teradata/em
/var/opt/teradata/em/files
/var/opt/teradata/em/logs
/opt/teradata/client/em/bin
For example: chown -R nonroot:admin /etc/opt/teradata/em - Log on as a non-root user.
-
Start the empublisher and emcontrolagent services:
/opt/teradata/client/em/bin/empublisher start
/opt/teradata/client/em/bin/emcontrol start
- Check the /opt/teradata/client/em/logs/empublisher.log log files for errors.