#!/bin/bash if [ ! -f /bin/mail ]; then yum -y install mailx fi cd /root rm -rf rkhunter-1.4.0.tar.gz rm -rf rkhunter-1.4.0 wget http://pkgs.fedoraproject.org/repo/pkgs/rkhunter/rkhunter-1.4.0.tar... tar -xzf rkhunter-1.4.0.tar.gz cd rkhunter-1.4.0 ./installer.sh --install /usr/local/bin/rkhunter --versioncheck /usr/local/bin/rkhunter --update rm -rf /root/rkhunt er-1.4.0 rm -rf /root/rkhunter-1.4.0.tar.gz cd /etc/cron.daily/ echo '#!/bin/bash' >rkhunter.sh echo '/usr/local/bin/rkhunter --versioncheck' >> rkhunter.sh echo '/usr/local/bin/rkhunter --update' >> rkhunter.sh echo '/usr/local/bin/rkhunter --cronjob --report-warnings-only | mail -s "Rkhunter daily scan results for `hostname`" root' >> rkhunter.sh chmod 755 /etc/cron.daily/rkhunter.sh yum install -y sysstat iotop libpcap rpm -ih http://pkgs.repoforge.org/iftop/iftop-0.17-1.el6.rf.x86_64.rpm rpm -ih http://pkgs.repoforge.org/multitail/multitail-5.2.9-1.el6.rf.x86_64.rpm
Wednesday, April 30, 2014
Group Install: iftop,multitail,sysstat,rkhunter
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment