Clamav unofficial sigs
- Title: Editing Clamav unofficial sigs
- Author(s): Javier Alcazar
- Date: August 8, 2014
- Version(s): 1.0
- Zentyal profiles: All
Editing Clamav unofficial sigs
This article will provide a solution to install an alternative signature database for the clamav antivirus that is included in the Zentyal package suite. In order to install these new antivirus mirrors on your Zentyal server, you can follow the next procedure:
1. Make sure that you have installed the following packages (these packages are included by zentyal-antivirus, but make sure that you have installed in your server):
dpkg -l | grep clamav
the packages are:
ii clamav 0.98.1+dfsg-4ubuntu1.1 amd64 anti-virus utility for Unix - command-line interface ii clamav-base 0.98.1+dfsg-4ubuntu1.1 all anti-virus utility for Unix - base package ii clamav-daemon 0.98.1+dfsg-4ubuntu1.1 amd64 anti-virus utility for Unix - scanner daemon ii clamav-freshclam 0.98.1+dfsg-4ubuntu1.1 amd64 anti-virus utility for Unix - virus database update utility ii libclamav6 0.98.1+dfsg-4ubuntu1.1 amd64 anti-virus utility for Unix - library
2. Download:
http://sourceforge.net/projects/unofficial-sigs/
3. Extract the tar file:
tar xfv clamav-unofficial-sigs-(version).tar.gz
4. Go to the folder:
cd clamav-unofficial-sigs-(version)
The folder includes:
-rw-r--r-- 1 root root 40304 jun 6 2010 CHANGELOG -rw-r--r-- 1 root root 2789 jun 6 2010 clamav-unofficial-sigs.8 -rw-r--r-- 1 root root 12421 ago 5 16:43 clamav-unofficial-sigs.conf -rw-r--r-- 1 root root 705 jun 6 2010 clamav-unofficial-sigs-cron -rw-r--r-- 1 root root 138 jun 6 2010 clamav-unofficial-sigs-logrotate -rwxr-xr-x 1 root root 76045 jun 6 2010 clamav-unofficial-sigs.sh* -rwxr-xr-x 1 root root 9459 jun 6 2010 clamd-status.sh* -rw-r--r-- 1 root root 5819 jun 6 2010 INSTALL -rw-r--r-- 1 root root 1519 jun 6 2010 LICENSE -rw-r--r-- 1 root root 3788 jun 6 2010 README
5. Change rights:
chmod 755 *.sh
6. Edit the clamav-unofficial-sigs.conf file with the following configurations:
- Make sure that the PATH statement correctly defines the location of your binary files. These include: find, sed, awk, cut, grep, tail, hown, chmod, cmp, diff, dig, host, gzip, ls, cp, mv, test, gpg, xargs, sleep, urandom, chksum, rsync, curl, socat, etc. It has been reported that on Sun systems, the GNU utilities should be used rather than the default Sun versions.
- System shell setting: Based on user feedback, it has been reported that "sh" works best for BSD variants, "ksh" for Sun Solaris, and "bash" for Linux variants. If you experience problems running the script, please try editing the top line olsf the script file and changing "sh" to either "ksh" or "bash" before reporting a problem.
- Adjust configuration settings to meet your system requirements.
Also, you will probably need to modify the following lines:
- Set path to clamd.pid file (see clamd.conf for path location), clamd_pid="/var/run/clamav/clamd.pid":
- When the configuration of the file is complete, set the following variable to "yes", user_configuration_complete="yes":
7. Edit the cron file clamav-unofficial-sigs-cron included in the package the we just downloaded before (you can set the desired time period):
na
45 * * * * root /usr/bin/clamav-unofficial-sigs.sh -c /etc/clamav-unofficial-sigs.conf
8. Copy the files under the specific directories:
sudo cp clamav-unofficial-sigs.sh /usr/bin cp clamav-unofficial-sigs.conf /etc cp clamav-unofficial-sigs.8 /usr/share/man/man8 cp clamav-unofficial-sigs-cron /etc/cron.d cp clamav-unofficial-sigs-logrotate /etc/logrotate.d
9. Test it:
/usr/bin/clamav-unofficial-sigs.sh -c /etc/clamav-unofficial-sigs.conf
If everything is correct the previous command should start downloading the extra signatures, showing the result below: