Here are the steps used to manually install chkrootkit on a Linux system:
1. # wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
2. # tar zxvf chkrootkit.tar.gz
3. # cd chkrootkit-version_number
4. # make
5. Copy chkrootkit and associated executable into /usr/local/bin
# find . -type f -perm +001 -exec cp {} /usr/local/bin \;
Next, create a root crontab entry to run chkrootkit daily.
0 3 * * * (cd /usr/local/bin; ./chkrootkit 2>&1 | /bin/mail -s “`/bin/hostname` chkrootkit output for `/bin/date +\%m`-`/bin/date +\%d`-`/bin/date +\%y`” root)
1. # wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
2. # tar zxvf chkrootkit.tar.gz
3. # cd chkrootkit-version_number
4. # make
5. Copy chkrootkit and associated executable into /usr/local/bin
# find . -type f -perm +001 -exec cp {} /usr/local/bin \;
Next, create a root crontab entry to run chkrootkit daily.
0 3 * * * (cd /usr/local/bin; ./chkrootkit 2>&1 | /bin/mail -s “`/bin/hostname` chkrootkit output for `/bin/date +\%m`-`/bin/date +\%d`-`/bin/date +\%y`” root)
1 comments:
suggestion...
/bin/date +\%F
instead of 30+ characters you've got there ;P
Post a Comment