I am on Ubuntu, I am trying to install rkhunter.
apt-get install rkhunter
But then, I did
I kept getting
Invalid WEB_CMD configuration option: Relative pathname: "/bin/false"
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I had the same problem but found the following fix:
/etc/rkhunter.conf. Uncomment (remove the # to the left) and change the following three variables:
MIRRORS_MODE=1 ---> MIRRORS_MODE=0 UPDATE_MIRRORS=0 ---> UPDATE_MIRRORS=1 WEB_CMD="/bin/false" ---> WEB_CMD=""
--update should now work.
I believe the well-written comments in
/etc/rkhunter.conf explain each variable clearly, but, in the tl;dr spirit, here's my quick interpretation of what is happening:
MIRRORS_MODE=1 tells rkhunter to only use local mirrors, but you have to define them in the mirrors file for this setting to work. Switching to
MIRRORS_MODE=0 allows rkhunter to use any mirror.
UPDATE_MIRRORS=0 only allows the mirrors file to be updated manually. Switching to
UPDATE_MIRRORS=1 allows rkhunter to update the file during the
However, considering this function was purposely disabled for security reasons, it's seems like it may be best to update rkhunter using the package manager. That's what I plan to do. Hope this was helpful.
Apparently it is caused by a security update that disabled remote downloading of updates. I have seen the recommendation to replace in
However, I don't see the point since the update will fail. I think you should leave it to
/bin/false, ignore the message and rely on aptitude for the updates.