Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


clamav_antivirus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
clamav_antivirus [2013/12/11 21:17] juckinsclamav_antivirus [2023/07/03 10:29] (current) juckins
Line 1: Line 1:
-Notes on ClamAV AntiVirus+==== ClamAV AntiVirus Notes ====
  
 +[[https://idroot.us/install-clamav-rocky-linux-9/|ClamAV on RockyLinux 9]] - Basic install instructions\\
 +[[https://linux.how2shout.com/install-clamav-on-rocky-linux-8-almalinux/|ClamAV on Rocky Linux]]
 +
 +
 +__CentOS 7 VM notes__:\\
 +Set /etc/clamd.d/scan.conf "MaxThreads" to 1 (default is 10) to avoid too much CPU usage upon reboot
 +
 +__CentOS 7 issues__:\\
 +https://www.adminsys.ch/2015/08/21/installing-clamav-epel-centosred-hat-7-nightmare/ \\
 +http://linux-audit.com/install-clamav-on-centos-7-using-freshclam/
 +
 +If not CentOS7, start with this procedure - or see steps listed below: \\
 +[[http://www.centosblog.com/how-to-install-clamav-and-configure-daily-scanning-on-centos/]]
 +
 +Other links: \\
 [[http://www.clamav.net/]]\\ [[http://www.clamav.net/]]\\
 [[http://tboxmy.blogspot.com/2013/06/install-clamav-antivirus-on-centos.html]]\\ [[http://tboxmy.blogspot.com/2013/06/install-clamav-antivirus-on-centos.html]]\\
Line 8: Line 23:
 __Steps done as root on local linux box:__ __Steps done as root on local linux box:__
  
-Make sure the "epel" yum repository is installed first.+Use this link to install and follow file modifications carefully (some paths need to be adjusted): 
 +  * https://techservicedoc.com/how-to-install-clamav-antivirus-tool-on-rhel-centos-7/ 
 + 
 +Other notes from previous installs: 
 +  * Make sure the "epel" yum repository is installed first 
 +  * Using the "rpmforge" repository resulted in conflicting clam vs clamav users 
 +  * The "clamav-milter" package is only for sendmail scanning on send
  
 yum install clamav clamav-db clamav-devel clamav-milter clamd yum install clamav clamav-db clamav-devel clamav-milter clamd
Line 118: Line 139:
 Clamav may report errors in the scan logs if SELinux is set to enforcing; some files cannot be checked even as root. Clamav may report errors in the scan logs if SELinux is set to enforcing; some files cannot be checked even as root.
  
 +Check /var/log/clamav for log files updating; freshclam failed on one box because log files had bad permissions.  User "clam" and user "clamav" seemed to conflict, and another box only had user clam, not both.  This can happen when the clamd RPM and the clamav RPM come from different sources. The following recommendations are what are used in my VM distributions of ZendTo. There are 2 usernames involved: "clam" and "clamav".
 +
 +The following is all based on the line
 +
 +User clam
 +
 +appearing in the file /etc/clamd.conf
 +
 +More info: http://zend.to/clamavpermissions.php
 +
 +Fix:  Disable rpmforge in /etc/yum.repos.d/ directory 
 +
 +Other scripts: [[https://www.annasseh.info/knowledgebase/30/Install-ClamAV--on-CentOS-6---64-bit-plus-Configure-Daily-Scanning.html]]
clamav_antivirus.1386814669.txt.gz · Last modified: 2013/12/11 21:17 by juckins