Hi,

> Hi,
> 
> I've built the rkhunter 1.3.0 spec on two 64bit linux servers.
> 
> Both created and installed fine, but I can't get them running with 
> the constant error of:
> 
> # rkhunter --propupd
> Script directory does not exist: /usr/local/lib/rkhunter/scripts
> 
> Ok, so the rpm creates these scripts in:
> 
> # rpm -ql rkhunter|grep scripts
> /usr/local/lib64/rkhunter/scripts
> /usr/local/lib64/rkhunter/scripts/check_modules.pl
> /usr/local/lib64/rkhunter/scripts/check_port.pl
> /usr/local/lib64/rkhunter/scripts/check_update.sh
> /usr/local/lib64/rkhunter/scripts/filehashmd5.pl
> /usr/local/lib64/rkhunter/scripts/filehashsha1.pl
> /usr/local/lib64/rkhunter/scripts/readlink.sh
> /usr/local/lib64/rkhunter/scripts/showfiles.pl
> /usr/local/lib64/rkhunter/scripts/stat.pl
> 
> So I've gone into rkhunter.conf and defined this:
> 
> SCRIPTDIR=/usr/local/lib64/rkhunter/scripts
> 
> Yet even after this I still get the error:
> 
> # rkhunter -c
> Script directory does not exist: /usr/local/lib/rkhunter/scripts
> 
> and:
> 
> # rkhunter --configfile /etc/rkhunter.conf -c
> Script directory does not exist: /usr/local/lib/rkhunter/scripts
> 
> There doesn't seem to be any way around this without symlinking the
> /usr/local/lib and /usr/local/lib64 directories, which I shouldn't 
> need to do ie. if the SCRIPTDIR setting isn't properly read by 
> rkhunter, then it's a bug.

I found the problem with this.

When building from the spec file, there must be a process which adds the
following to the end of the rkhunter.conf file:

INSTALLDIR=/usr/local
DBDIR=/var/lib/rkhunter/db
SCRIPTDIR=/usr/local/lib/rkhunter/scripts
TMPDIR=/var/lib/rkhunter/tmp

ie. even though I had previously set the SCRIPTDIR value earlier in the conf
file, the latter SCRIPTDIR re-sets the variable thus causing the issue above.

So even though the issue above is solved, the scripts/process which sets the 4
lines at the bottom of the rkhunter.conf file (when build from spec and
installing from RPM) is incorrect as it's not checking for the architecture to
determine what it should put on the SCRIPTDIR line.

Regards,

Michael.

> Thanks.
> 
> Michael.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Rkhunter-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rkhunter-users
------- End of Original Message -------


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Rkhunter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to