Install ClamAV on CentOS 7

Install ClamAV and set up scheduled scans. Install Epel: # yum install epel-release Install ClmAV # yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: * epel: * extras: * updates: Package clamav-data-0.98.7-1.el7.noarch already installed and latest version Read more about Install ClamAV on CentOS 7[…]

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 about can’t open /var/log/clamav/freshclam.log in append mode[…]

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: 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 about Schedule ClamAV scanning via Cron with zero config, and e-mail notification[…]