[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] chkrootkit notify - revisited
- Subject: [cobalt-users] chkrootkit notify - revisited
- From: Bob G7 <Bob_G7@xxxxxxxxxx>
- Date: Thu Aug 8 19:08:05 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Not sure what's happening here, I created a job yesterday to run and notify
me when chkrootkit runs and put it cron.daily as we have discussed before on
the list.
#!/bin/sh
cd /home/tools/chkrootkit-0.35
./chkrootkit > /root/chkrootkit.out
mail -s "Hacking Check" my@xxxxxxxxx < /root/chkrootkit.out
When I enter sh /etc/cron.daily/chkrootkit.sh to test it I get the report
mailed to me. But I was expecting a report to be created this morning and
mailed to me when cron.daily ran but never got anything.
When I created the job, did I miss something? Basically all I did was:
logged into the server
su - & password
cd /etc/cron.daily
pico chkrootkit.sh
#!/bin/sh
cd /home/tools/chkrootkit-0.35
./chkrootkit > /root/chkrootkit.out
mail -s "Hacking Check" my@xxxxxxxxx < /root/chkrootkit.out
saved it, tested it and logged out.
Any help on what I may have done wrong would be a great help.
Thanks, Bob G.