ispCP - Board - Support
:: Live Demo - ispCP Omega RC5 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: :: Live Demo - ispCP Omega RC5 (/thread-303.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


RE: :: Live Demo - ispCP Omega RC3 - BeNe - 10-28-2007 05:46 AM

Updated to r888

Quote:btw, what have you found out about
Quote:
/var/log/chkrootkit.log doesn't exist or is empty
When i run the cronjob manuel it works. But every day the files is empty again. Rolleyes
Maybe it has something todo with the default chrootkit cronjob in /etc/cron.daily/

Greez BeNe


RE: :: Live Demo - ispCP Omega RC3 - Zothos - 10-28-2007 06:46 AM

could you post the default cron entry plz? I dont have rkhunter installed atm Tongue


RE: :: Live Demo - ispCP Omega RC3 - BeNe - 10-28-2007 06:52 AM

Quote:I dont have rkhunter installed atm
The Problem is the chkrootkit log and not rkhunter Wink

Here it is /etc/cron.daily/chkrootkit:
Code:
#!/bin/sh -e

CHKROOTKIT=/usr/sbin/chkrootkit
CF=/etc/chkrootkit.conf
LOG_DIR=/var/cache/chkrootkit

if [ ! -x $CHKROOTKIT ]; then
  exit 0
fi

if [ -f $CF ]; then
    . $CF
fi

if [ "$RUN_DAILY" = "true" ]; then
    if [ "$DIFF_MODE" = "true" ]; then
        $CHKROOTKIT $RUN_DAILY_OPTS > $LOG_DIR/log.new 2>&1
        if [ ! -f $LOG_DIR/log.old ] \
           || ! diff -q $LOG_DIR/log.old $LOG_DIR/log.new > /dev/null 2>&1; then
            cat $LOG_DIR/log.new
        fi
        mv $LOG_DIR/log.new $LOG_DIR/log.old
    else
        $CHKROOTKIT $RUN_DAILY_OPTS
    fi
fi

Greez BeNe


RE: :: Live Demo - ispCP Omega RC3 - Zothos - 10-28-2007 06:59 AM

I meant that Wink


RE: :: Live Demo - ispCP Omega RC3 - raphael - 10-28-2007 10:10 AM

Quote:Maybe it has something todo with the default chrootkit cronjob in /etc/cron.daily/
hmm, no, it isn't related (different paths are used).

what about replacing the line in cron.d/ispcp which looks like:
Quote:0 0,12 * * * root chkrootkit 2>&1 > /var/log/chkrootkit.log
with
Quote:0 0,12 * * * root chkrootkit > /var/log/chkrootkit.log 2>&1



RE: :: Live Demo - ispCP Omega RC3 - BeNe - 10-28-2007 09:57 PM

I changed it! We will see what happend tomorrow Wink

Greez BeNe


RE: :: Live Demo - ispCP Omega RC3 - gOOvER - 10-29-2007 01:06 AM

I changed it too.....Maybe it works..... Smile


RE: :: Live Demo - ispCP Omega RC3 - BeNe - 10-29-2007 07:41 PM

No, it does not work!
Code:
/var/log/chkrootkit.log:
      
/bin/sh: chkrootkit: command not found

Greez BeNe


RE: :: Live Demo - ispCP Omega RC3 - joximu - 10-29-2007 08:04 PM

apt-get install chkrootkit

# which chkrootkit
/usr/sbin/chkrootkit

/J


RE: :: Live Demo - ispCP Omega RC3 - BeNe - 10-29-2007 08:17 PM

chkrootkit is already installed - and it works if i do it manually Wink
Code:
# which chkrootkit
/usr/sbin/chkrootkit
Correct, i have this output!

I does only not work with the cron...

Greez BeNe