AppSync: Push install to Linux host fails when performed by a SUDO user
Summary: AppSync: Push install to Linux host fails when performed by a SUDO user
Symptoms
When adding a Linux host and pushing the Plugin out, then following error is returned:
An error occurred while communicating with the AppSync Host Plug-in.
Please check to see if agent service is running, and restart if necessary.
The AppSync server.log located in c:\program files\emc\jboss\logs will also contain the following error:
Error while getting file over SFTP: Permission denied
Cause
The cause of this issue is the umask of the SUDO user.
The umask was found to be 077, which restricted files created by the SUDO user from being read from group members of the group that that the SUDO user belongs to.
SFTP was working fine, however the .rsp file created from the SFTP in /opt/emc/appsync was not able to be read.
Resolution
Please ensure the umask for the SUDO user used to push the plugin to the Linux host has a umask that allows the owner read and write permissions, and the group read permissions at a minimum.
A umask of 037 should suffice.