{"id":79,"date":"2008-05-17T20:47:00","date_gmt":"2008-05-17T11:47:00","guid":{"rendered":"http:\/\/yokensaka.com\/fedora\/?p=79"},"modified":"2008-05-17T20:47:00","modified_gmt":"2008-05-17T11:47:00","slug":"clamav-version-0-93%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/yokensaka.com\/fedora\/clamav-version-0-93%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88\/","title":{"rendered":"ClamAV version: 0.93\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8"},"content":{"rendered":"<p><b>\u25a0\u3000Fedora8 \/ Fedora9<\/b><br \/>\nClamAV\u304cversion: 0.93\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u305f\u306e\u3067\u3001\u30bd\u30fc\u30b9\u304b\u3089\u624b\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n<b>\u25a0\u3000\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eclamav\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p>\n<pre>\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\u3002\n[root@server ~]# tar zxvf clamav-0.92.1_self.tar.gz\nclamav-0.92.1\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\n[root@server ~]# cd clamav-0.92.1\nclamav-0.92.1\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n[root@server clamav-0.92.1]# make uninstall\nclamav-0.92.1\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3092\u524a\u9664\n[root@server clamav-0.92.1]# cd\n[root@server ~]# rm -f clamav-0.92.1_self.tar.gz\n[root@server ~]# rm -rf clamav-0.92.1\n\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e\u524a\u9664\n[root@server ~]# rm -rf \/usr\/local\/clamav<\/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\u308b\u3002<\/p>\n<pre>[root@linux ~]# groupadd clamav\n[root@linux ~]# useradd -g clamav -s \/bin\/false clamav<\/pre>\n<p><b>\u25a0\u3000\u6700\u65b0\u7248\u306eClamAV\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/b>\u3000<a href=\"http:\/\/www.clamav.net\/download\/sources\/\" target=\"_blank\">\u6700\u65b0\u7248\u306f\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3067\u78ba\u8a8d\u3002<\/p>\n<pre>[root@server ~]# wget http:\/\/freshmeat.net\/redir\/clamav\/29355\/url_tgz\/clamav-0.93.tar.gz\nclamav-0.93\u3092\u5c55\u958b\n[root@server ~]# tar zxvf clamav-0.93.tar.gz\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\n[root@server ~]# rm -f clamav-0.93.tar.gz\nclamav-0.93\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3078\u79fb\u52d5\n[root@server ~]# cd clamav-0.93\nMakefile\u3092\u81ea\u52d5\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u300cconfigure\u300d\u3092\u5b9f\u884c\u3002\n[root@server clamav-0.93]# .\/configure --prefix=\/usr\/local\/clamav\nmake\u3092\u5b9f\u884c\u3057\u3001clamav\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n[root@server clamav-0.93]# make\n[root@server clamav-0.93]# make install<\/pre>\n<p><b>\u25a0\u3000\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304f<\/b><\/p>\n<pre>[root@server clamav-0.93]# cd\n[root@server ~]# tar cvf clamav-0.93_self.tar .\/clamav-0.93\n[root@server ~]# gzip clamav-0.93_self.tar<\/pre>\n<p><b>\u25a0\u3000\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5909\u66f4<\/b><br \/>\n\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\u3002<\/p>\n<pre>[root@server ~]# vi \/usr\/local\/clamav\/etc\/freshclam.conf\n# Comment or remove the line below.\nExample\n\u2193\n#Example\n[root@server ~]# vi \/usr\/local\/clamav\/etc\/clamd.conf\n# Comment or remove the line below.\nExample\n\u2193\n#Example<\/pre>\n<p><b>\u25a0\u3000\u300cfreshclam\u300d\u3092\u4f7f\u7528\u3057\u3066VirusDB\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/b><\/p>\n<pre>[root@server ~]# \/usr\/local\/clamav\/bin\/freshclam\nClamAV update process started at Sun Apr 27 08:59:28 2008\nmain.cvd is up to date (version: 46, sigs: 231834, f-level: 26, builder: sven)\nWARNING: getfile: daily-6689.cdiff not found on remote server (IP: 219.117.246.122)\nWARNING: getpatch: Can't download daily-6689.cdiff from database.clamav.net\nWARNING: getfile: daily-6689.cdiff not found on remote server (IP: 219.117.246.122)\nWARNING: getpatch: Can't download daily-6689.cdiff from database.clamav.net\nnonblock_connect: connect timing out (30 secs)\nCan't connect to port 80 of host database.clamav.net (IP: 211.10.155.48)\nTrying host database.clamav.net (211.12.214.131)...\nWARNING: getfile: daily-6689.cdiff not found on remote server (IP: 211.12.214.131)\nWARNING: getpatch: Can't download daily-6689.cdiff from database.clamav.net\nWARNING: Incremental update failed, trying to download daily.cvd\nnonblock_connect: connect timing out (30 secs)\nCan't connect to port 80 of host database.clamav.net (IP: 211.10.155.48)\nTrying host database.clamav.net (211.12.214.131)...\nDownloading daily.cvd [100%]\ndaily.cvd updated (version: 6957, sigs: 39725, f-level: 26, builder: arnaud)\nDatabase updated (271559 signatures) from database.clamav.net (IP: 211.12.214.131)<\/pre>\n<p><b>\u25a0\u3000\u30a6\u30a3\u30eb\u30b9\u30b9\u30ad\u30e3\u30f3\u78ba\u8a8d(\/etc\/passwd\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u307f\u308b)<\/b><\/p>\n<pre>[root@server ~]# \/usr\/local\/clamav\/bin\/clamscan --infected --remove --recursive \/etc\/passwd\n----------- SCAN SUMMARY -----------\nKnown viruses: 270800\nEngine version: 0.93\nScanned directories: 0\nScanned files: 1\nInfected files: 0\nData scanned: 0.00 MB\nTime: 4.017 sec (0 m 4 s)<\/pre>\n<p>version: 0.93\u3067\u30b9\u30ad\u30e3\u30f3\u3055\u308c\u3066\u308b\u3053\u3068\u3092\u78ba\u8a8d<br \/>\n<b>\u25a0\u3000Clam AntiVirus\u306e\u5b9a\u671f\u81ea\u52d5\u5b9f\u884c\u8a2d\u5b9a<\/b><br \/>\n\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<\/p>\n<pre>[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<\/pre>\n<p><b>\u25a0\u3000Clam AntiVirus\u5b9a\u671f\u81ea\u52d5\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u9650\u4ed8\u52a0<\/b><\/p>\n<pre>[root@linux ~]# chmod 700 clamav.sh<\/pre>\n<p><b>\u25a0\u3000cron\u7de8\u96c6<\/b><\/p>\n<pre>[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\u3000\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<div align=right><a href=\"#\">\u25b2 \u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u3000Fedora8 \/ Fedora9 ClamAV\u304cversion: 0.93\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u305f\u306e\u3067\u3001\u30bd\u30fc\u30b9\u304b\u3089\u624b\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 \u25a0\u3000\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eclamav\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \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-79","post","type-post","status-publish","format-standard","hentry","category-23-clam-av"],"_links":{"self":[{"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":0,"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yokensaka.com\/fedora\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}