Permission Denied: Failed to install the management agent.
  • 15 Feb 2024
  • 1 Minute to read
  • Dark
    Light

Permission Denied: Failed to install the management agent.

  • Dark
    Light

Article summary

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/veeamtmp


Once you've run the above commands, you can re-attempt the installation.

sh /root/LinuxAgentPackages.MyCompany_Default_location.sh

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence