NIX deployment tool fails using sudo

(imported topic written by Neetha_M)

Hi,

We are using the NIX Client Installer to deploy agents remotely on AIX machines. When we try the installation using an account with sudo provileges, the Client fails to start. It gives the following error:

Initialising…
Executing: echo XXXXXXXXXXXXXXXXX | sudo -S chmod 777 /tmp
Password:
Copying Files
Copying BESAgent-9.0.649.0.ppc64_aix61.pkg
Copying Masthead file
Connecting to system with SSH.
Executing: echo XXXXXXXXXXXXXXXXX | sudo -S installp -agqYXd /tmp/BESAgent-9.0.649.0.ppc64_aix61.pkg BESClient
±----------------------------------------------------------------------------+
Pre-installation Verification…
±----------------------------------------------------------------------------+
Verifying selections…done
Verifying requisites…done
Results…

   +-----------------------------------------------------------------------------+
              BUILDDATE Verification ...
   +-----------------------------------------------------------------------------+
   Verifying build dates...done
   FILESET STATISTICS
   ------------------
       1  Selected to be installed, of which:
           1  Already installed (directly or via superseding filesets)
     ----
       0  Total to be installed
  
  
   Pre-installation Failure/Warning Summary
   ----------------------------------------
   Name                      Level           Pre-installation Failure/Warning
   -------------------------------------------------------------------------------
   BESClient                 9.0.649.0       Already installed
  
   Executing: echo XXXXXXXXXXXXXXXXX | sudo -S mkdir -p /etc/opt/BESClient; mv /tmp/actionsite.afxm /etc/opt/BESClient/actionsite.afxm
   mv: /etc/opt/BESClient/actionsite.afxm: Permission denied
   Executing: echo XXXXXXXXXXXXXXXXX | sudo -S /etc/rc.d/rc2.d/SBESClientd start
   Starting IBM Endpoint Manager: BESClient
   Missing masthead /etc/opt/BESClient/actionsite.afxm.
   Client Installed: 9.0.649.0

Noticed that the tool uses the “sudo” privilege to create the BESClient directory, but not while moving the actionsite.afxm file to the BESClient folder:

echo XXXXXXXXXXXXXXXXX | sudo -S mkdir -p /etc/opt/BESClient; mv /tmp/actionsite.afxm /etc/opt/BESClient/actionsite.afxm

Please help.