rkhunter problem

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, Nov 15, 2021.

  1. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi guys,
    i hope its ok i post this matter here, if not let me know.
    i have a new installation of ispconfig and ubuntu 20.04
    the rkhunter config is like that:
    Code:
     WEB_CMD=""
    MIRRORS_MODE=0
    UPDATE_MIRRORS=1
    
    
    i found some threads but not one could help me it get an error when i want to update rkhunter
    Code:
    Invalid WEB_CMD configuration option: Relative pathname: "/bin/false"
    
    
    i downloaded the new version of rkhunter and installed it but however i have the same error and can not run an update.
    Do you have any idea how to proceed?
    thanks in advance for your help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I've just tested it here on an Ubuntu 20.04 system and the changes in rkhunter.conf you made are working on my system. Just a guess, did you edit the existing lines in the file, or did you add new lines? if you added these new lines e.g. at the top, then they will get overridden by the old values later in the file. e.g. the WEB_CMD line is near the bottom of the file. Please go trough the whole file and check that you really changed all occurrences. You can also see the exact lines that need to be changed with:

    grep -n WEB_CMD /etc/rkhunter.conf
    grep -n MIRRORS_MODE /etc/rkhunter.conf
    grep -n UPDATE_MIRRORS /etc/rkhunter.conf

    This will also show you if the same variable is defined and uncommented twice. Fromy my system:

    Code:
    root@server1:/home/administrator# grep -n WEB_CMD /etc/rkhunter.conf
    1174:#     WEB_CMD=curl
    1180:#     WEB_CMD="/opt/bin/dlfile --timeout 5m -q"
    1185:#     WEB_CMD="ftp -o -"
    1189:WEB_CMD=""
    root@server1:/home/administrator# grep -n MIRRORS_MODE /etc/rkhunter.conf
    110:# The MIRRORS_MODE option tells rkhunter which mirrors are to be used when
    122:MIRRORS_MODE=0
    root@server1:/home/administrator# grep -n UPDATE_MIRRORS  /etc/rkhunter.conf
    107:UPDATE_MIRRORS=1
     
  3. Tom John

    Tom John Active Member HowtoForge Supporter

    Thanks for your detailed answer.
    You were right, i had 2 entries of WEB_CMD that was the problem.
    Thanks for checking on your system and your assumption which was absolutely right.
     
    till likes this.
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    You can put local modifications into a rkhunter.local file, so they are loaded later and don't interfere with future package updates.
     

Share This Page