2013年8月20日火曜日

centos6.3環境にchkrootkit(chkroot検知ツール)の導入_コマンドが見つかりません


以下のページを参照して、chkrootkit(chkroot検知ツール)の導入を実施した。
http://centossrv.com/chkrootkit.shtml

[root@centos63 ~]# yum -y install chkrootkit
Loaded plugins: downloadonly, fastestmirror, priorities, refresh-packagekit,
              : security
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * rpmforge: ftp.kddilabs.jp
 * updates: ftp.iij.ad.jp
base                                                     | 3.7 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
15 packages excluded due to repository priority protections
Setting up Install Process
No package chkrootkit available.
Error: Nothing to do

どうも「No package chkrootkit available.」というメッセージがあやしい
そして、コマンドが見つかりませんエラー発生。

[root@centos63 ~]# chkrootkit | grep INFCTED
-bash: chkrootkit: コマンドが見つかりません
[root@centos63 ~]# chkrootkit
-bash: chkrootkit: コマンドが見つかりません

・下記URLを参考にしてあらかじめ、PRMforgeリポジトリは導入済。
http://centossrv.com/rpmforge.shtml

では原因は何か?
結果は、EPRLリポジトリを導入して現象改善。
参考URL
http://arisonsvr.org/web/maincontents/serverset/Clamav/clamav.html#epelripo

実行コマンド
[root@centos63 ~]# rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm    /***EPELリポジトリ導入***/
http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm を取 得中
警告: /var/tmp/rpm-tmp.Dkdtmu: ヘッダ V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
準備中...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
新しいメールが /var/spool/mail/root にあります
[root@centos63 ~]# yum -y update epel-release      /***EPELリポジトリアップデート***/
Loaded plugins: downloadonly, fastestmirror, priorities, refresh-packagekit,
              : security
Loading mirror speeds from cached hostfile
epel/metalink                                            | 6.2 kB     00:00
 * base: ftp.iij.ad.jp
 * epel: ftp.kddilabs.jp
 * extras: ftp.iij.ad.jp
 * rpmforge: ftp.kddilabs.jp
 * updates: ftp.iij.ad.jp
epel                                                     | 4.2 kB     00:00
epel/primary_db                                          | 5.4 MB     00:00
1300 packages excluded due to repository priority protections
Setting up Update Process
No Packages marked for Update

その後、chkrootkitの導入に成功

[root@centos63 ~]# yum -y install chkrootkit
Loaded plugins: downloadonly, fastestmirror, priorities, refresh-packagekit,
              : security
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * epel: ftp.kddilabs.jp
 * extras: ftp.iij.ad.jp
 * rpmforge: ftp.kddilabs.jp
 * updates: ftp.iij.ad.jp
1300 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package chkrootkit.x86_64 0:0.49-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package             Arch            Version                Repository     Size
================================================================================
Installing:
 chkrootkit          x86_64          0.49-2.el6             epel          303 k
Transaction Summary
================================================================================
Install       1 Package(s)
Total download size: 303 k
Installed size: 789 k
Downloading Packages:
chkrootkit-0.49-2.el6.x86_64.rpm                         | 303 kB     00:00
警告: rpmts_HdrFromFdno: ヘッダ V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) <epel@fedoraproject.org>
 Package: epel-release-6-8.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : chkrootkit-0.49-2.el6.x86_64                                 1/1
  Verifying  : chkrootkit-0.49-2.el6.x86_64                                 1/1
Installed:
  chkrootkit.x86_64 0:0.49-2.el6
Complete!

1 件のコメント:

  1. If you are looking into making money from your websites with popup ads - you should try one of the biggest networks - Pop Ads.

    返信削除