Install ClamAV on CentOS 7

Install ClamAV and set up scheduled scans. Install Epel: Install ClmAV Copy a the clamd.conf template, in case you don’t have a configuration file yet: Change the file and Comment out “Example” Change this… To this… Configure SELinux for ClamAV. Check if selinux in on: Write this command to get it working with SELinux if … Read more

Clamd.conf file for CentOS

## ## Example config file for the Clam AV daemon ## Please read the clamd.conf(5) manual before editing this file. ## # Comment or remove the line below. #Example # Uncomment this option to enable logging. # LogFile must be writable for the user running daemon. # A full path is required. # Default: disabled … Read more

can’t open /var/log/clamav/freshclam.log in append mode

Error: [stextbox id=”warning”]ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log). ERROR: Can’t open /var/log/clamav/freshclam.log in append mode (check permissions!).[/stextbox] # cd /var/log/clamav # ls -la freshclam.log -rw-r–r– 1 clamav clamav 0 Oct 20 03:43 freshclam.log # nano /etc/freshclam.conf # By default when started freshclam drops privileges and switches to the # "clamav" user. This directive … Read more

Schedule ClamAV scanning via Cron with zero config, and e-mail notification

Clamav-cron Summary: This is a simple Bash script for those who want to schedule the following tasks via cron: Source: https://code.google.com/p/clamav-cron/ update the ClamAV virus database (freshclam); perform personal system scan (clamscan); send a brief report via e-mail; without any knowledge about ClamAV configuration files (such as clamd.conf or freshclam.conf) and without running the ClamAV … Read more