[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] chkrootkit notify - revisited
- Subject: RE: [cobalt-users] chkrootkit notify - revisited
- From: "Jolley, Carl" <Carl.Jolley@xxxxxxx>
- Date: Fri Aug 9 12:27:29 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----Original Message-----
From: Bob G7
To: Cobalt-Users@xxxxxxxxxxxxxxx
Sent: 8/7/02 2:04 PM
Subject: [cobalt-users] chkrootkit notify - revisited
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.
---------------
Does chkrootkit.sh have execute permissions and does it
have a valid "shebang" line?