Current time: 04-30-2024, 03:23 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
/var/log/rkhunter.log existiert nicht oder ist leer
Author Message
Nuxwin
Unregistered

 
Post: #21
RE: /var/log/rkhunter.log existiert nicht oder ist leer
(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.
11-17-2009 03:17 AM
Quote this message in a reply
Rafioso Offline
Junior Member
*

Posts: 151
Joined: Oct 2009
Reputation: 0
Post: #22
RE: /var/log/rkhunter.log existiert nicht oder ist leer
(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.
11-17-2009 04:05 AM
Find all posts by this user Quote this message in a reply
Rafioso Offline
Junior Member
*

Posts: 151
Joined: Oct 2009
Reputation: 0
Post: #23
RE: /var/log/rkhunter.log existiert nicht oder ist leer
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.
11-17-2009 05:20 AM
Find all posts by this user Quote this message in a reply
Pionier Offline
Junior Member
*

Posts: 43
Joined: Sep 2009
Reputation: 0
Post: #24
RE: /var/log/rkhunter.log existiert nicht oder ist leer
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.
11-17-2009 06:36 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #25
RE: /var/log/rkhunter.log existiert nicht oder ist leer
vielleicht mal die rkhunter.log löschen - ggf. wird sie beim Erstellen dann mit den richtigen Rechten erstellt...

/J
11-17-2009 07:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Nuxwin
Unregistered

 
Post: #26
RE: /var/log/rkhunter.log existiert nicht oder ist leer
Just remove all old related /var/log/rkhunter* file and re run the command Wink
11-17-2009 08:00 AM
Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #27
RE: /var/log/rkhunter.log existiert nicht oder ist leer
that's what I told in german :-)
11-17-2009 08:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Nuxwin
Unregistered

 
Post: #28
RE: /var/log/rkhunter.log existiert nicht oder ist leer
(11-17-2009 08:27 AM)joximu Wrote:  that's what I told in german :-)

Oups, sorry Joxi. Tongue
11-17-2009 08:30 AM
Quote this message in a reply
Rafioso Offline
Junior Member
*

Posts: 151
Joined: Oct 2009
Reputation: 0
Post: #29
RE: /var/log/rkhunter.log existiert nicht oder ist leer
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.
(This post was last modified: 11-20-2009 07:49 AM by Rafioso.)
11-17-2009 09:09 AM
Find all posts by this user Quote this message in a reply
Nuxwin
Unregistered

 
Post: #30
RE: /var/log/rkhunter.log existiert nicht oder ist leer
(11-17-2009 09:09 AM)Rafioso Wrote:  Funktioniert Smile Punkte kommen.

I'm glad it works (finally). Thank you for the kudo. Wink
11-20-2009 12:34 PM
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)