On Friday 12 January 2007 10:18, Wilson Kwok wrote: > Hi, > > Can Clamav auto scan the Linux system directory, and then after > scan can send the results to email such as root, how can I do that ? > > > Thanks
Hi Wilson: By the way. Visited your city last summer during world cup. Love it. What you need is a strategy of some type that will balance speed with completeness. You also need to consider your system type. Is it a desktop system? A server? A combination? I run a desktop system. I came up with a strategy that works for me though it does not work for everybody I am sure. The link below is a bash script that will scan the most likely places that a virus could live. That is, in the $PATH directories and the library directories ( via ldconfig ). http://lurker.clamav.net/message/20061126.121049.529f004a.en.html At the very least the script will show you how to run clamscan, mail the output, and highlight when a virus is found. Couple that script with a daily cron job that scans user directories and you have covered most of the bases with little time. The reason why this covers most bases is that as a user, a virus could not install itself arbitrarily because most of the file system is writeable by root only. Shawn _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html