{"id":41,"date":"2007-06-12T23:51:00","date_gmt":"2007-06-12T14:51:00","guid":{"rendered":"http:\/\/yokensaka.com\/fedora\/?p=41"},"modified":"2007-06-12T23:51:00","modified_gmt":"2007-06-12T14:51:00","slug":"%e3%82%a6%e3%82%a3%e3%83%ab%e3%82%b9%e5%af%be%e7%ad%96clam-antivirus","status":"publish","type":"post","link":"http:\/\/yokensaka.com\/fedora\/?p=41","title":{"rendered":"\u30a6\u30a3\u30eb\u30b9\u5bfe\u7b56(Clam Antivirus)"},"content":{"rendered":"<p><b>\u25a0\u3000FC6 \/ Fedora7<\/b><br \/>\n<a href=\"http:\/\/www.clamav.net\/\">Clam Antivirus<\/a>\u306fGPL\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u5f93\u3063\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001Linux\u3084BSD\u3001Mac OS X\u306a\u3069\u5404\u7a2eUNIX\u7cfb\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u52d5\u4f5c\u3059\u308b\u30a2\u30f3\u30c1\u30a6\u30a4\u30eb\u30b9\u30bd\u30d5\u30c8\u3067\u3059\u3002<br \/>\n<b>\u25a0Clam AntiVirus\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p>\n<pre>[root@linux ~]# yum -y install clamav<\/pre>\n<p><b>\u25a0clamav-update\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p>\n<pre>[root@linux ~]# yum -y install clamav-update<\/pre>\n<p><b>\u25a0Clam AntiVirus\u306e\u8a2d\u5b9a<\/b><\/p>\n<pre>\u30a6\u30a3\u30eb\u30b9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u6700\u65b0\u5316\u306e\u6709\u52b9\u5316\n[root@linux ~]# sed -i 's\/Example\/#Example\/g' \/etc\/freshclam.conf\n[root@linux ~]# sed -i 's\/^FRESHCLAM_DELAY\\([^ ]*\\)\/#FRESHCLAM_DELAY\\1\/g' \/etc\/sysconfig\/freshclam\n\u30a6\u30a3\u30eb\u30b9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u65b0\u5316\n[root@linux ~]# freshclam\nClamAV update process started at Mon Jun 11 00:26:46 2007\nWARNING: Your ClamAV installation is OUTDATED!\nWARNING: Local version: 0.90.2 Recommended version: 0.90.3\nDON'T PANIC! Read http:\/\/www.clamav.net\/support\/faq\nmain.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)\nWARNING: Removing corrupted incremental directory daily.inc\nWARNING: Removing obsolete daily.cvd\nDownloading daily.cvd [100%]\ndaily.cvd updated (version: 3397, sigs: 19932, f-level: 16, builder: arnaud)\nWARNING: Your ClamAV installation is OUTDATED!\nWARNING: Current functionality level = 15, recommended = 16\nDON'T PANIC! Read http:\/\/www.clamav.net\/support\/faq\nDatabase updated (124432 signatures) from database.clamav.net (IP: 61.205.61.201)<\/pre>\n<p>\u203b yum\u3067\u300cclamav\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4eca\u306e\u3068\u3053\u308dversion: 0.90.2\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u3068\u3053\u308d\u304c\u6700\u65b0\u7248\u306fversion: 0.90.3\u3067\u3059\u306e\u3067\u300cfreshclam\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u3069\u3046\u3057\u3066\u3082\u6700\u65b0\u7248\u3092\u4f7f\u3044\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u30bd\u30fc\u30b9\u304b\u3089\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305ayum\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u308b\u306e\u3092\u5f85\u3064\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\n<b>\u25a0Clam AntiVirus\u306e\u78ba\u8a8d<\/b><\/p>\n<pre>\u30a6\u30a3\u30eb\u30b9\u30b9\u30ad\u30e3\u30f3\u78ba\u8a8d(\/etc\/passwd\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u307f\u308b)\n[root@linux ~]# clamscan --infected --remove --recursive \/etc\/passwd\nLibClamAV Warning: ***********************************************************\nLibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***\nLibClamAV Warning: *** DON'T PANIC! Read http:\/\/www.clamav.net\/support\/faq ***\nLibClamAV Warning: ***********************************************************\n----------- SCAN SUMMARY -----------\nKnown viruses: 124432\nEngine version: 0.90.2\nScanned directories: 0\nScanned files: 1\nInfected files: 0\nData scanned: 0.00 MB\nTime: 59.594 sec (0 m 59 s)<\/pre>\n<p><b>\u25a0Clam AntiVirus\u306e\u5b9a\u671f\u81ea\u52d5\u5b9f\u884c\u8a2d\u5b9a<\/b><\/p>\n<pre>\u6bce\u65e5\u81ea\u52d5\u7684\u306b\u30a6\u30a3\u30eb\u30b9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u6700\u65b0\u5316\u3057\u3066\u3001\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30a6\u30a3\u30eb\u30b9\u30b9\u30ad\u30e3\u30f3\u3092\u884c\u3046\u30b9\u30d7\u30ea\u30af\u30c8\u306e\u4f5c\u6210\n[root@linux ~]# vi clamav.sh\n#!\/bin\/bash\nPATH=\/usr\/bin:\/bin\nCLAMSCANTMP=`mktemp`\nfreshclam > \/dev\/null\nclamscan --recursive --remove \/ 2>\/dev\/null > $CLAMSCANTMP\n[ ! -z \"$(grep FOUND$ $CLAMSCANTMP)\" ] && \\\ngrep FOUND$ $CLAMSCANTMP | mail -s \"Virus Found in `hostname`\" root\nrm -f $CLAMSCANTMP\nClam AntiVirus\u5b9a\u671f\u81ea\u52d5\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u9650\u4ed8\u52a0\n[root@linux ~]# chmod 700 clamav.sh\ncron\u7de8\u96c6\n[root@linux ~]# crontab -e\n00 03 * * * \/root\/clamav.sh\u3000\u2190\u3000\u8ffd\u52a0(\u6bce\u65e53:00\u306bClam AntiVirus\u306e\u5b9a\u671f\u81ea\u52d5\u5b9f\u884c)\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30a6\u30a3\u30eb\u30b9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u81ea\u52d5\u6700\u65b0\u5316\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u524a\u9664\n[root@linux ~]# rm -f \/etc\/cron.d\/clamav-update<\/pre>\n<p>\u203b\u3053\u308c\u3067\u3001\u6bce\u65e5\u81ea\u52d5\u7684\u306b\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306e\u66f4\u65b0\u3068\u30a6\u30a3\u30eb\u30b9\u691c\u77e5\u4f5c\u696d\u3092\u5b9f\u65bd\u3067\u304d\u307e\u3059\u3002 \u30a6\u30a3\u30eb\u30b9\u3092\u691c\u77e5\u3057\u305f\u5834\u5408\u306e\u307froot\u5b9b\u306b\u30e1\u30fc\u30eb\u304c\u9001\u3089\u308c\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u308b\u3002<br \/>\n<b>\u25a0Cron Daemon\u304b\u3089\u306e\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u5bfe\u7b56<\/b><br \/>\nCron Daemon\u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5<\/p>\n<pre>WARNING: update of clamav database is disabled; please see\n'\/etc\/sysconfig\/freshclam'\nfor information how to enable the periodic update resp. how to turn\noff this message.<\/pre>\n<p>\u30a6\u30a3\u30eb\u30b9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306e\u66f4\u65b0\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u3067\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# vi \/etc\/sysconfig\/freshclam\n### !!!!! REMOVE ME !!!!!!\n### REMOVE ME: By default, the freshclam update is disabled to avoid\n### REMOVE ME: network access without prior activation\nFRESHCLAM_DELAY=disabled-warn   # REMOVE ME\n\u2193\n#FRESHCLAM_DELAY=disabled-warn   # REMOVE ME\u3000\u2190\u3000#\u3092\u8ffd\u52a0\u3057\u3066\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b<\/pre>\n<div align=right><a href=\"#\">\u25b2 \u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u3000FC6 \/ Fedora7 Clam Antivirus\u306fGPL\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u5f93\u3063\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001Linux\u3084BSD\u3001Mac OS X\u306a\u3069\u5404\u7a2eUNIX\u7cfb\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u52d5\u4f5c\u3059\u308b\u30a2\u30f3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-23-clam-av"],"_links":{"self":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":0,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}