Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sophos Central Linux Server Protection (Installation failed)

FormerMember
FormerMember

Hello

 

I tried to install "Sophos Central Server Protection for Linux" on my CentOS 7 (cPanel) server. The "SophosInstall.sh" scripts fails to download the medium installer. I am logged in as root user.

Error Code: 126

Error Message: installer/bin64/installer (No permission)

 

Does anyone know how to fix this problem?

 

Thank you for your help and kind regards



This thread was automatically locked due to age.
  • Hello Fabio Widmer,

    just these two lines starting with Error were all you've got when running ./SophosInstall.sh or was there more output? And you did run as root/use sudo - didn't you? 

    Christian

  • FormerMember
    0 FormerMember in reply to QC

    Hi Christian

    Thank you for your reply. Yes, I ran the script as root user. 

     

    sudo ./SophosInstaller.sh

    Installing Sophos Anti-Virus for Linux with arguments: []
    Downloading medium installer
    ./SophosInstall.sh: Zeile 172: installer/bin64/installer: Keine Berechtigung
    Failed to download the medium installer! (Error code = 126)

     

    Kind regards

  • Hello Fabio Widmer,

    unfortunately I don't use Central so I can't tell what SophosInstall is about to do in Zeile 172. Could it be that /tmp is mounted noexec?

    Christian

  • FormerMember
    0 FormerMember in reply to QC

    Hi Christian

    Yes, I think you are right. cPanel does this by default. Do I need to change /tmp temporary?

    Do you have experience running Sophos on a cPanel server?

    Thank you and kind regards

  • Hello Fabio Widmer,

    Do I need to change /tmp temporary
    perhaps not. If the Thin Installer works like the others it uses $TMPDIR as base and if it's not set then the value /tmp. So it might be possible to use a different directory.

    Christian 

  • FormerMember
    0 FormerMember in reply to QC

    Hello Christian

    I tried to change the $SOPHOS_TEMP_DIRECTORY but then I get other errors. If I found a way to run the installer I will let you know.

  • Hello Fabio Widmer,

    as said, I don't know the script but if its logic is similar to the on-premise installer the variable $SOPHOS_TEMP_DIRECTORY is derived (unless it's set "near the top"). It's probably better to set TMPDIR (export TMPDIR=<...>).

    Christian

  • chmod 777 install.sh

    then execute as root.

    ==

    When in doubt, Script it out.

  • I'm having similar issues on an Ubuntu 16.04 system. I've had similar issues on CentOS7 and was able to address them by running `sudo mount -o remount,rw,exec,nosuid /tmp` beforehand, but Ubuntu doesn't have /tmp mounted as a separate partition. It would seem your installer doesn't handle systemd?

     

    ls -la SophosInstall.sh
    -r-x------ 1 user user 5189071 May 12 17:37 SophosInstall.sh

    sudo SOPHOS_TEMP_DIRECTORY=/home/user/tmp/ ./SophosInstall.sh
    Installing Sophos Anti-Virus for Linux with arguments: []
    tar: Skipping to next header
    tar: Exiting with failure status due to previous errors
    Downloading medium installer
    ./SophosInstall.sh: 172: ./SophosInstall.sh: installer/bin64/installer: not found
    Failed to download the medium installer! (Error code = 127)

     

     

  • This is effectively no different than running it with sudo. Regardless, I tried this as well and received the same errors.