While installing the Veeam agent you may see a permission denied error:
[root@SAU-50429-VS ~]# sh LinuxAgentPackages.SAU_FB5E4_VC_Default_location.sh
Veeam Management Agent Installation
Creating temp directory...
Unpacking installation files...
Extracting packages...
System platform: x64
Installing management agent...
LinuxAgentPackages.SAU_FB5E4_VC_Default_location.sh: line 49: ./getcomputerinfo: Permission denied
Failed to install the management agent.This is because the script is trying to execute files in /tmp/ but noexec flag is set on that mount.
You can see below, the noexec flag on tmp mounts, causing the error:
[root@SAU-50429-VS ~]# mount | grep -i '/tmp'
/usr/tmpDSK on /tmp type ext4 (rw,nosuid,noexec,relatime,discard,data=ordered)
/usr/tmpDSK on /var/tmp type ext4 (rw,nosuid,noexec,relatime,discard,data=ordered)To remedy this issue please perform the following two commands via the terminal:
sed -i 's/$(mktemp -d -t veeammainst-XXXX)/\"\/root\/veeamtmp\"/' /root/LinuxAgentPackages.MyCompany_Default_location.sh
mkdir /root/veeamtmpOnce you've run the above commands, you can re-attempt the installation.
sh /root/LinuxAgentPackages.MyCompany_Default_location.sh