ispCP - Board - Support
/var/log/rkhunter.log existiert nicht oder ist leer - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+---- Forum: Archiv (/forum-54.html)
+---- Thread: /var/log/rkhunter.log existiert nicht oder ist leer (/thread-5940.html)

Pages: 1 2 3 4


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Nuxwin - 11-17-2009 03:17 AM

(11-17-2009 02:48 AM)Rafioso Wrote:  Was soll ich da schauen? Standardmäßig war der Cron ja in der Cron-Datei eingefügt. Diesen habe ich dann, wie in dem Thread hier steht, bearbeitet, hat aber nichts gebracht (Post #14).


if you use Debian, after following the indication of post #14 you should edit your /etc/default/rkhunter file as this :

Code:
# Defaults for rkhunter cron jobs
# sourced by /etc/cron.*/rkhunter

#
# This is a POSIX shell fragment
#

# Set this to the email address where reports and run output should be sent
REPORT_EMAIL="root"

# Set this to yes to enable rkhunter weekly database updates
CRON_DB_UPDATE="yes"

# Set this to yes to enable reports of weekly database updates
DB_UPDATE_EMAIL="no"

# Set this to yes to enable rkhunter daily runs
CRON_DAILY_RUN="no"

# Nicenesses range from -20 (most favorable scheduling) to 19 (least favorable).
NICE="0"

Here, you must change the CRON_DAILY_RUN value to "no".

after, remove the old files related to rkhunter.

Code:
# rm /var/log/rkhunter.*

After, that, you can try to run rkhunter manually as cron task

Code:
# rkhunter --cronjob --createlogfile \
/var/log/rkhunter.log.root --display-logfile 1> /var/log/rkhunter.log 2>/dev/null

Edit: Fixed in the latest revision.


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Rafioso - 11-17-2009 04:05 AM

(11-17-2009 03:06 AM)joximu Wrote:  mach mal ein "ls -la /var/log/rkhunt*" - damit wir auch die Permissions sehen.

/J
Bitteschön:
Code:
-rw------- 1 root root  74K 2009-11-16 12:00 /var/log/rkhunter.log
-rw------- 1 root root 3.0K 2009-11-15 06:47 /var/log/rkhunter.log.old
-rw------- 1 root root  74K 2009-11-16 12:00 /var/log/rkhunter.log.root
-rw------- 1 root root  74K 2009-11-16 00:00 /var/log/rkhunter.log.root.old

(11-17-2009 03:17 AM)nuxwin Wrote:  
(11-17-2009 02:48 AM)Rafioso Wrote:  Was soll ich da schauen? Standardmäßig war der Cron ja in der Cron-Datei eingefügt. Diesen habe ich dann, wie in dem Thread hier steht, bearbeitet, hat aber nichts gebracht (Post #14).


if you use Debian, after following the indication of post # 14 you should edit you /etc/default/rkhunter file as this :

Code:
# Defaults for rkhunter cron jobs
# sourced by /etc/cron.*/rkhunter

#
# This is a POSIX shell fragment
#

# Set this to the email address where reports and run output should be sent
REPORT_EMAIL="root"

# Set this to yes to enable rkhunter weekly database updates
CRON_DB_UPDATE="yes"

# Set this to yes to enable reports of weekly database updates
DB_UPDATE_EMAIL="no"

# Set this to yes to enable rkhunter daily runs
CRON_DAILY_RUN="no"

# Nicenesses range from -20 (most favorable scheduling) to 19 (least favorable).
NICE="0"

Here, you must change the CRON_DAILY_RUN value to "no".

after, remove the old file related to rkhunter

Code:
# rm /var/log/rkhunter.log
# rm /var/log/rkhunter.log.old

After, that, you can try to run rkhunter manually as cron task

Code:
# rkhunter --cronjob --createlogfile \
/var/log/rkhunter.log.root --display-logfile 1> /var/log/rkhunter.log 2>/dev/null

Note : I'll fix it ASAP
Ok, thank you. I'll try it.


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Rafioso - 11-17-2009 05:20 AM

Ok ich habe es versucht. Der manuell ausgeführte Cron erstelle ein paar rkhunter-Logdateien aber es zeigt im Control Panel weiterhin an, dass die Datei nicht existiert oder leer ist, was aber falsch ist.
#####
Ok i tried it. The manually started cron create some rkhunter-logfiles but it still say in the control panel, that the file does not exist or is empty, but that's wrong.


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Pionier - 11-17-2009 06:36 AM

So wie ich das sehe, müssen die Rechte der rkhunter.log auf 644 gesetzt werden, dann sollte sie auch im Anti-Rootkits-Tools-Logchecker angezeigt werden.


RE: /var/log/rkhunter.log existiert nicht oder ist leer - joximu - 11-17-2009 07:34 AM

vielleicht mal die rkhunter.log löschen - ggf. wird sie beim Erstellen dann mit den richtigen Rechten erstellt...

/J


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Nuxwin - 11-17-2009 08:00 AM

Just remove all old related /var/log/rkhunter* file and re run the command Wink


RE: /var/log/rkhunter.log existiert nicht oder ist leer - joximu - 11-17-2009 08:27 AM

that's what I told in german :-)


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Nuxwin - 11-17-2009 08:30 AM

(11-17-2009 08:27 AM)joximu Wrote:  that's what I told in german :-)

Oups, sorry Joxi. Tongue


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Rafioso - 11-17-2009 09:09 AM

Ok, ich habe alle rkhunter*-Dateien gelöscht und den Cron nochmal ausgeführt. Jetzt sehe ich es im Control Panel. Mal sehen, ob es in 1-2 Tagen immernoch geht, dann gibts Reputation+1 Wink
###
Ok, i've delete all rkhunter*-files and start the cron again. I see it now in the control panel. I hope, it still work in 1-2 days, then you get reputation+1 Wink

//Edit
Funktioniert Smile Punkte kommen.


RE: /var/log/rkhunter.log existiert nicht oder ist leer - Nuxwin - 11-20-2009 12:34 PM

(11-17-2009 09:09 AM)Rafioso Wrote:  Funktioniert Smile Punkte kommen.

I'm glad it works (finally). Thank you for the kudo. Wink