Ubuntu : Install ClamAV
1.ติดตั้ง ClamAV และ Update
1 2 3 4 5 | apt-get install clamav apt-get install clamav-daemon /etc/init.d/clamav-daemon restart freshclam #update virus definitions clamscan -r /location_of_files_or_folders |
2.Schedule Scan
1 2 | crontab -e 00 00 * * * clamscan -r location_of_files_or_folders |
3.Log and Quarantine
1 2 | mkdir /var/log/clamav/infected nano /etc/clamav/clamscan_schedule.sh |
ป้อน
1 2 3 4 5 6 7 8 9 10 | #!/bin/sh ### fix log file if needed LOG_FILE="/var/log/clamav/scan.log" if [ ! -f "$LOG_FILE" ]; then touch "$LOG_FILE" chmod 644 "$LOG_FILE" chown clamav.clamav "$LOG_FILE" fi clamscan -r /public_data --quiet --log="$LOG_FILE" --verbose --move=/var/log/clamav/infected |
1 | chmod +x /etc/clamav/clamscan_schedule.sh |
Written by Komkid on April 26th, 2010 with
no comments.
Read more articles on Software and Ubuntu.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article