概要†clamavはUNIXマシン向けのウイルス対策ソフトです。 手順†※2014/1/30追記:epelのレポジトリが必要です。 # yum install epel-release # yum install clamd # cp -p /etc/freshclam.conf /etc/freshclam.conf.`date +%Y%m%d` # vim /etc/freshclam.conf --- #LogSyslog yes LogSyslog no --- # service clamd start Starting Clam AntiVirus Daemon: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: ************************************************** [ OK ] # freshclam # mkdir /root/.crontab # crontab -l > /root/.crontab/crontab.`date +%Y%m%d` # crontab -e 追記 # clamav virus db update 10 4 * * * /usr/bin/freshclam --quiet -l /var/log/freshclam.log ※バージョンclamd-0.98の場合は/var/log/clamav/freshclam.logを指定。下記ログファイルを作成して権限を変更しなくても良い。 # cd /var/log # touch freshclam.log # chown clam:clam freshclam.log 自動†# chkconfig --on clamd # chkconfig --list 手動†スキャン対象ディレクトリで # clamscan --infected --recursive
|