O'Reilly logo

Redmine Cookbook by Aleksandar Pavić

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Checking the data dirs for possible malware

As Redmine allows users to upload any kind of attachment to issues, documents, and files, it is possible that some users will upload a file infected with a computer virus, or malicious code inside a Word macro document. This recipe will show you a few tricks to avoid such an unwanted scenario.

Getting ready

The first thing that we need to do is to install an open source antivirus called clamav.

Linux machines

To install clamav on Linux, perform the following steps:

  1. Install antivirus components by typing the following on Ubuntu:
    apt-get install clamav
    
  2. Schedule an antivirus database update by typing the following:
    crontab –e
    
  3. Add the following content:
    05 00 * * * freshclam
    

Windows users

To install clamav on ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required