Configuring ClamAV (Linux)

Last modified by Aurelie Bertrand on 2026/01/12 16:46


Installation

Installing antivirus software on a DigDash server to prevent users from uploading and downloading malicious files from DigDash is possible using software such as ClamAV.

To do this

  • Install ClamAV on the server
  • Run the following command to update the ClamAV virus database: freshclam
  • Configure the On-Access Scanning feature to monitor sensitive folders (DigDash's AppData folder, for example)
  • Run clamd and clamonacc

Automatic update of the virus database

The command freshclam command is used to manually update the ClamAV virus database.

There are two ways of ensuring that the database is updated regularly:

  • Use a service: Services exist under certain Linux distributions which allow the database to be refreshed periodically in the background (see clamav-freshclam.service).
  • Run the command using a task scheduler: A scheduler such as cron can be used to run the freshclam at regular intervals.

The database can be updated 4 times an hour (ClamAV Virus Database FAQ).