Skip to main content

where is rkhunter cron controlled?

Comments

9 comments

  • User Avatar
    cPRex Jurassic Moderator
    Hey there! rkhunter isn't something that ships with cPanel, so I'm not sure I'll have this answer. By default, the tool just gets installed from source and there is no automation or cron as part of the configuration that I'm aware of. I'd also caution against using that tool, as the last stable release is from 20 February 2018, so I doubt it would be useful.
    0
  • User Avatar
    ejsolutions
    .. so I doubt it would be useful.

    I tend to agree and reckon, now that it's "fixed", the passive fingerprinting within WHM is likely better suited.
    0
  • User Avatar
    eLIANT
    I'd be happy to disable it. But to do that I still need an answer to my original post.
    0
  • User Avatar
    cPRex Jurassic Moderator
    I'm not sure there's going to be a good answer for you, since that software is manually configured outside of cPanel tools. I would normally expect to find something in /etc/cron.d, but it's also possible this could be in root's crontab, which you can check with "crontab -e" from the command line.
    0
  • User Avatar
    ejsolutions
    0
  • User Avatar
    eLIANT
    CRONTAB -E: [QUOTE]23 15 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1 48 14 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1 #5,35 * * * * /usr/local/bandmin/bandmin #27 0 * * * /usr/local/bandmin/ipaddrmap #3 21 * * 1 (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/script/upcp --cron > /dev/null) 3 21 * * * (/usr/local/cpanel/scripts/fix-cpanel-perl; /etc/upcp_control) 27 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check 6 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache 38 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache 22 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1 32 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1 8 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1 */5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1 43 0 * * * /usr/local/cpanel/whostmgr/docroot/cgi/
    0
  • User Avatar
    ejsolutions
    Nothing about rkhunter. /etc/cron.daily has file "rkhuinter" but it is the actual script, not the cron configuration line.

    You're not fully understanding how crontabs work. That IS the file that runs khunter on a daily basis. mv /etc/cron.daily/rkhunter.sh /root/rkhunter.disabled
    0
  • User Avatar
    eLIANT
    Thanks for that information. So, just by existing in the cron.daily folder this rkhunter script runs? What kicks it off? Because it runs every 20 hours.
    0
  • User Avatar
    ejsolutions
    0

Please sign in to leave a comment.