2. Further Configuration and Setting up Manual and Scheduled Scans

2.1. Configuring Sophos Settings

The preconfigured Sophos installer package available from the Computing Services configures Sophos with the following settings.

  • Updates downloaded directly from Sophos
  • Checks for and downloads available updates once an hour
  • On-access scanning is enabled
  • No scheduled scans are configured

For full details for configuring Sophos further, refer to the Sophos Anti-Virus for Linux documentation pages. For information on configuring scans, see the next section.

2.2. Enabling and Disabling On-access Scanning

You can enable or disable on-access scanning via the GUI under the [Control] tab. Alternatively, at the command line, use
sudo /opt/sophos-av/bin/savdctl enable
to enable on-access scanning, and
sudo /opt/sophos-av/bin/savdctl disable
to disable it.

2.3. Scanning Your Computer for Viruses

To scan all or part of the computer for viruses, use the command savscan. You can specify a path to be scanned. To scan the whole computer run
savscan /
or to scan a directory use
savscan directoryname
For example, to scan the directory /home/abcd0123 use the command
savscan /home/abcd0123.

To configure a scheduled scan to scan your computer automatically every Wednesday at 9pm (or at any other time/frequency), you need to use crontab to schedule the savscan command using options as appropriate (such as savscan / to scan the whole computer). The syntax of crontab may vary. Use man crontab to check the syntax on your system. See the Sophos knowledgebase article Setting up a cron job in UNIX-type operating systems for further information.

If you run a manual scan, the output should appear on the screen so that you can see whether any viruses are detected. If you configure a scheduled scan via crontab, the output will be logged, and you can check the results using sudo /opt/sophos-av/bin/savlog --category=savscan or via the Log Viewer tab of the GUI interface (select [savscan.log] from the Category drop-down.)

Up: Contents Previous: 1. Installing and Updating Sophos