This article describes the two options to install the Sophos anti-virus for Linux when /tmp is mounted as noexec.
/tmp
noexec
Applies to the following Sophos products and versions Sophos Anti-Virus for Linux 10
The first thing to do is to check if the /tmp is mounted as noexec. To do this, run the command mount|grep tmp
mount|grep tmp
If the result shows /tmp noexec, proceed in doing either of the steps or options below:
/tmp noexec
/tmp exec
mount -o remount,exec /tmp
install.sh, SophosInstall.sh
rpm -i SophosInstall.rpm / deb -i SophosInstall.deb
mount -o remount,noexec /tmp
The TMPDIR is a variable used by the Sophos anti-virus for Linux install script to extract the archives for the installation. Another way to install the Sophos anti-virus for Linux when /tmp is mounted as noexec is to set the TMPDIR variable to a mount point which is not mounted as noexec.
TMPDIR
Note: If the TMPDIR has already been set to a location, restore it to its previous value.
/var/tmp
export TMPDIR=/var/tmp
If you've spotted an error or would like to provide feedback on this article, please use the section below to rate and comment on the article. This is invaluable to us to ensure that we continually strive to give our customers the best information possible.
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. For technical support post a question to the community. Or click here for new feature/product improvements. Alternatively for paid/licensed products open a support ticket.