{"id":47,"date":"2007-07-12T20:58:00","date_gmt":"2007-07-12T11:58:00","guid":{"rendered":"http:\/\/yokensaka.com\/fedora\/?p=47"},"modified":"2007-07-12T20:58:00","modified_gmt":"2007-07-12T11:58:00","slug":"clamav%e3%81%ae%e6%9c%80%e6%96%b0%e7%89%88%e3%80%8cversion-0-91%e3%80%8d%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"http:\/\/yokensaka.com\/fedora\/?p=47","title":{"rendered":"ClamAV\u306e\u6700\u65b0\u7248\u300cversion: 0.91\u300d\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p><b>\u203b Fedora7<\/b><br \/>\nCron Daemon \u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u305f\u306e\u3067ClamAV\u3092 0.91 \u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<pre>WARNING: Your ClamAV installation is OUTDATED!\nWARNING: Local version: 0.90.3 Recommended version: 0.91<\/pre>\n<p><b>\u25a0\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><br \/>\n\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u306f\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3042\u3063\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5c55\u958b\u3057\u3066\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5c55\u958b\n[root@linux ~]# tar zxvf clamav-0.90.3_self.tar.gz\nclamav-0.90.3\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\n[root@linux ~]# cd clamav-0.90.3\nclamav-0.90.3\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n[root@linux clamav-0.90.3]# make uninstall<\/pre>\n<p>\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u304c\u6b8b\u3063\u3066\u305f\u5834\u5408\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3082\u524a\u9664<\/p>\n<pre>[root@linux ~]# rm -rf \/usr\/local\/clamav\n[root@linux ~]# rm -rf clamav-0.90.3<\/pre>\n<p>ClamAV\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u3000<a href=\"http:\/\/www.clamav.net\/download\/sources\/\">\u6700\u65b0\u7248\u306f\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# wget http:\/\/freshmeat.net\/redir\/clamav\/29355\/url_tgz\/clamav-0.91.tar.gz<\/pre>\n<p>clamav\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306b<br \/>\n\u300cclamav\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30e6\u30fc\u30b6\u3068\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# groupadd clamav\n[root@linux ~]# useradd -g clamav -s \/bin\/false clamav<\/pre>\n<p>\u305d\u308c\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<pre>clamav-0.91\u3092\u5c55\u958b\n[root@linux ~]# tar zxvf clamav-0.91.tar.gz\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\n[root@linux ~]# rm -f clamav-0.91.tar.gz\nclamav-0.91\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3078\u79fb\u52d5\n[root@linux ~]# cd clamav-0.91\nMakefile\u3092\u81ea\u52d5\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u300cconfigure\u300d\u3092\u5b9f\u884c\u3002\n\u300cconfigure\u300d\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u4f7f\u7528\u3055\u308c\u308b\u3079\u304d\u30b3\u30f3\u30d1\u30a4\u30e9\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u4e0e\u3048\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3001\u30ea\u30f3\u30af\u3059\u3079\u304d\u30e9\u30a4\u30d6\u30e9\u30ea\u7b49\u3001\n\u305d\u306e\u4ed6\u8af8\u3005\u306e\u60c5\u5831\u304c\u81ea\u52d5\u7684\u306b\u53ce\u96c6\u3055\u308c\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305fMakefile\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002\n[root@linux clamav-0.91]# .\/configure --prefix=\/usr\/local\/clamav\nmake\u3092\u5b9f\u884c\u3057\u3001clamav\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n[root@linux clamav-0.91]# make\n[root@linux clamav-0.91]# make install<\/pre>\n<p>\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# tar cvf clamav-0.91_self.tar .\/clamav-0.91\n[root@linux ~]# gzip clamav-0.91_self.tar<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6b63\u5e38\u306b\u5b8c\u4e86\u3057\u305f\u3089\u307e\u305a\u3001\u4e8c\u3064\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<br \/>\n\/usr\/local\/clamav\/etc\/freshclam.conf<br \/>\n\/usr\/local\/clamav\/etc\/clamd.conf<br \/>\n\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304dExample\u3068\u66f8\u304b\u308c\u305f\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3001\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre>[root@linux clamav-0.91]# vi \/usr\/local\/clamav\/etc\/freshclam.conf\n# Comment or remove the line below.\nExample\n\u2193\n#Example\n[root@linux clamav-0.91]# vi \/usr\/local\/clamav\/etc\/clamd.conf\n# Comment or remove the line below.\nExample\n\u2193\n#Example<\/pre>\n<p>\u300cfreshclam\u300d\u3092\u4f7f\u7528\u3057\u3066VirusDB\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3002<\/p>\n<pre>[root@linux clamav-0.91]# \/usr\/local\/clamav\/bin\/freshclam\nClamAV update process started at Thu Jul 12 12:12:31 2007\nmain.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)\nDownloading daily-3631.cdiff [100%]\nDownloading daily-3632.cdiff [100%]\nDownloading daily-3633.cdiff [100%]\nDownloading daily-3634.cdiff [100%]\nDownloading daily-3635.cdiff [100%]\nDownloading daily-3636.cdiff [100%]\nDownloading daily-3637.cdiff [100%]\nDownloading daily-3638.cdiff [100%]\nDownloading daily-3639.cdiff [100%]\nDownloading daily-3640.cdiff [100%]\nDownloading daily-3641.cdiff [100%]\ndaily.cvd updated (version: 3641, sigs: 31211, f-level: 16, builder: ccordes)\nDatabase updated (135711 signatures) from database.clamav.net (IP: 61.205.61.201)<\/pre>\n<p>\u30a6\u30a3\u30eb\u30b9\u30b9\u30ad\u30e3\u30f3\u78ba\u8a8d(\/etc\/passwd\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u307f\u308b)<\/p>\n<pre>[root@linux clamav-0.91]# \/usr\/local\/clamav\/bin\/clamscan --infected --remove --recursive \/etc\/passwd\n----------- SCAN SUMMARY -----------\nKnown viruses: 135711\nEngine version: 0.91\nScanned directories: 0\nScanned files: 1\nInfected files: 0\nData scanned: 0.00 MB\nTime: 2.468 sec (0 m 2 s)\n[root@linux clamav-0.91]#<\/pre>\n<p>version: 0.91\u3067\u30b9\u30ad\u30e3\u30f3\u3055\u308c\u3066\u308b\u3053\u3068\u3092\u78ba\u8a8d<br \/>\n<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\n# excludelist\nexcludelist=\/root\/clamscan.exclude\nif [ -s $excludelist ]; then\nfor i in `cat $excludelist`\ndo\nif [ $(echo \"$i\"|grep \\\/$) ]; then\ni=`echo $i|sed -e 's\/^\\([^ ]*\\)\\\/$\/\\1\/p' -e d`\nexcludeopt=\"${excludeopt} --exclude-dir=$i\"\nelse\nexcludeopt=\"${excludeopt} --exclude=$i\"\nfi\ndone\nfi\nCLAMSCANTMP=`mktemp`\n\/usr\/local\/clamav\/bin\/freshclam > \/dev\/null\n\/usr\/local\/clamav\/bin\/clamscan --recursive --remove ${excludeopt} \/ > $CLAMSCANTMP 2>&1\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)<\/pre>\n<p><b>\u25a0\u30b9\u30ad\u30e3\u30f3\u9664\u5916\u8a2d\u5b9a<\/b><br \/>\nbackup\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30b9\u30ad\u30e3\u30f3\u5bfe\u8c61\u5916\u306b\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a<\/p>\n<pre>[root@linux ~]# echo \"\/backup\/\" >> clamscan.exclude<\/pre>\n<p><b>\u8ffd\u8a18<\/b><br \/>\n\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30a6\u30a3\u30eb\u30b9\u30b9\u30ad\u30e3\u30f3\u3092AM3:00\u306b\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307e\u3059\u304c\u3001AM3:50\u5206\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002clamav-0.91\u306etest\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u5165\u3063\u3066\u308b6\u500b\u306e\u30a6\u30a3\u30eb\u30b9\u3092\u3057\u3063\u304b\u308a\u691c\u51fa\u3057\u3066\u524a\u9664\u3057\u3066\u307e\u3059\u3002<\/p>\n<pre>\/\/root\/clamav-0.91\/test\/clam-v2.rar: ClamAV-Test-File FOUND\n\/\/root\/clamav-0.91\/test\/clam-v3.rar: ClamAV-Test-File FOUND\n\/\/root\/clamav-0.91\/test\/clam.cab: ClamAV-Test-File FOUND\n\/\/root\/clamav-0.91\/test\/clam.zip: ClamAV-Test-File FOUND\n\/\/root\/clamav-0.91\/test\/clam.exe.bz2: ClamAV-Test-File FOUND\n\/\/root\/clamav-0.91\/test\/clam.exe: ClamAV-Test-File FOUND<\/pre>\n<div align=right><a href=\"#\">\u25b2 \u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u203b Fedora7 Cron Daemon \u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u305f\u306e\u3067ClamAV\u3092 0.91 \u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002 WARNING: Your ClamAV installation is OUTDATE [&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-47","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\/47","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=47"}],"version-history":[{"count":0,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}