I have tried on RHEL 7.4 as well, get the same error and the agent cannot start. Also tried using sudo to run the deployer_daemon start script as sysnoliounix as well as root, both failed
1. Install agent using script
nolio-linux-x64-6.5.0.10007.sh
(answering prompts to get successful install)
2. Created the user and group required (note this was done in the instructions as part of the original post but wasn't mentioned in the steps)
root@ip-192-168-121-134 PROD #useradd sysnoliounix root@ip-192-168-121-134 PROD #groupadd uGLBsysnoliounix root@ip-192-168-121-134 PROD #usermod -g uGLBsysnoliounix sysnoliounix
3. Remove the installed service
root@ip-192-168-121-223 PROD # cd /apps/Nolio/NolioAgent/ root@ip-192-168-121-223 PROD # ./deployer_daemon.sh remove Stopping Nolio Deployer Agent Service... Stopped Nolio Deployer Agent Service. Detected RHEL or Fedora: Removing Nolio Deployer Agent Service daemon... Note: Forwarding request to 'systemctl disable nolioagent.service'. Removed symlink /etc/systemd/system/multi-user.target.wants/nolioagent.service.
3. Edit conf/deployer_configuration.sh to set RUN_AS_USER=sysnoliounix
4. Change owner of the directory and files to sysnoliounix account
root@ip-192-168-121-134 PROD # chown -R sysnoliounix:uGLBsysnoliounix /apps/Nolio/NolioAgent/
5. Install nolio agent service
root@ip-192-168-121-134 PROD # /apps/Nolio/NolioAgent/deployer_daemon.sh install Detected RHEL or Fedora: Installing the Nolio Deployer Agent Service daemon.. Writing nolioagent.service file... Created symlink from /etc/systemd/system/multi-user.target.wants/nolioagent.service to /etc/systemd/system/nolioagent.service.
6. Trying to start service fails
root@ip-192-168-121-134 PROD # /apps/Nolio/NolioAgent/deployer_daemon.sh start -bash: /apps/Nolio/NolioAgent/deployer_daemon.sh: Permission denied root@ip-192-168-121-134 PROD # sudo -u sysnoliounix /apps/Nolio/NolioAgent/deployer_daemon.sh start sudo: unable to execute /apps/Nolio/NolioAgent/deployer_daemon.sh: Permission denied
OS version
root@ip-192-168-121-134 PROD # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo)