Current time: 12-24-2024, 02:32 AM Hello There, Guest! (LoginRegister)


Post Reply 
Fresh RC6 Install "/var/log/rkhunter.log doesn't exist or is empty" [Solved]
Author Message
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #1
Fresh RC6 Install "/var/log/rkhunter.log doesn't exist or is empty" [Solved]
Hi, I saw that this problem appears in ubuntu 8.04 (probably lenny too) after a fresh install (at least in my case)
There are two different problems:
The first is that in the 1.3.x versions of rkhunter the options --scan-knownbad-files and --check-deleted are no longer supported, so the checks doesn't start.

The second is the message telling me that rkhunter.log doesn't exist, I looked at this:
The file is in the cron
Code:
0       */12    *       *       *       root /usr/bin/rkhunter --scan-knownbad-files --check-deleted --cronjob --createlogfile /var/log/rkhunter.log >/dev/null 2>&1

The permissions of the created log seem to be fine
Code:
# ls -l /var/log/rkhunter.log
-rw------- 1 root root 74991 2008-08-14 06:45 rkhunter.log

The openbasedir for master seems ok too
Code:
open_basedir = "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"

Cheers!
(This post was last modified: 08-18-2008 05:37 PM by aseques.)
08-14-2008 07:54 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Fresh RC6 Install "/var/log/rkhunter.log doesn't exist or is empty"
Quote:The permissions of the created log seem to be fine
Code:
# ls -l /var/log/rkhunter.log
-rw------- 1 root root 74991 2008-08-14 06:45 rkhunter.log

Wrong. Since the panel gui runs as vu2000:vu2000, you need to change permissions to:
Code:
# ls -l /var/log/rkhunter.log
-rw-r----- 1 root vu2000 74991 2008-08-14 06:45 rkhunter.log
08-14-2008 08:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #3
RE: Fresh RC6 Install "/var/log/rkhunter.log doesn't exist or is empty"
Ok, changed ...
It would be nicer if it could be changed without having to chgrp or chmod the files by hand (haven't find the solution in the man so far)

About the two deprecated command, something should be done, since without removing those flags, the scanner won't start.

Regards
08-15-2008 12:05 AM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #4
RE: Fresh RC6 Install "/var/log/rkhunter.log doesn't exist or is empty"
added in setup
08-16-2008 10:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #5
RE: Fresh RC6 Install "/var/log/rkhunter.log doesn't exist or is empty"
RatS Wrote:added in setup

Cool !
08-18-2008 05:36 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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