{"id":832,"date":"2008-06-07T23:45:27","date_gmt":"2008-06-07T23:45:27","guid":{"rendered":"http:\/\/www.bodhost.com\/web-hosting\/?p=832"},"modified":"2026-02-26T14:04:55","modified_gmt":"2026-02-26T14:04:55","slug":"install-rkhunter-cronjob","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/","title":{"rendered":"How to install rkhunter to a cronjob"},"content":{"rendered":"<p><strong>How to setup a daily scan report?<\/strong><\/p>\n<p># vi \/etc\/cron.daily\/rkhunter.sh<\/p>\n<p>#!\/bin\/bash<br \/>\n(\/usr\/local\/bin\/rkhunter -c \u2013cronjob 2&gt;&amp;1 | mail -s \u201cDaily Rkhunter Scan Report\u201d email@domain.com)<\/p>\n<p>#chmod x \/e<br \/>\n#chmod x \/etc\/cron.daily\/rkhunter.sh<\/p>\n<p>#rkhunter \u2013update<\/p>\n<p>rkhunter (Rootkit Hunter) is a security tool that scans your system for rootkits, backdoors, and other security vulnerabilities. Setting up a cronjob for RKHunter ensures that regular scans are performed automatically. Here&#8217;s a step-by-step guide on how to install and set up RKHunter with a cronjob:<\/p>\n<ol>\n<li><strong><strong>Install RKHunter:<br \/>\n<\/strong><\/strong>On Debian\/Ubuntu-based systems:sudo apt update<br \/>\nsudo apt install rkhunterOn Red Hat\/Fedora-based systems:sudo dnf install rkhunter<\/li>\n<li>Update RKHunter:<br \/>\nMake sure to update RKHunter regularly to get the latest security definitions:sudo rkhunter &#8211;update<\/li>\n<li>Configure RKHunter:<br \/>\nEdit the configuration file to suit your system:sudo nano \/etc\/rkhunter.confReview the settings in the configuration file. You may want to customize some options based on your system&#8217;s needs. Save the changes.<\/li>\n<li>Create a Cronjob:<br \/>\nOpen the cron table for editing:sudo crontab -eAdd the following line to run RKHunter daily. This example runs the scan at 3:00 AM every day. Adjust the timing as needed:0 3 * * * \/usr\/bin\/rkhunter &#8211;cronjob &#8211;update &#8211;quiet<\/p>\n<p>Save the changes.<\/li>\n<li>Verify the Cronjob:<br \/>\nAfter saving the cronjob, you can verify it by listing the current crontab entries:sudo crontab -lEnsure that your RKHunter cronjob is listed.<\/li>\n<li>Test RKHunter:<br \/>\nRun RKHunter manually to make sure it works as expected:sudo rkhunter &#8211;checkAddress any warnings or issues that RKHunter identifies.<\/li>\n<\/ol>\n<p>That&#8217;s it! Now RKHunter will automatically run daily at the specified time and report any potential security threats. Keep in mind that RKHunter is just one tool in your security toolkit, and it&#8217;s essential to use multiple tools and practices to ensure the overall security of your system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to setup a daily scan report? # vi \/etc\/cron.daily\/rkhunter.sh #!\/bin\/bash (\/usr\/local\/bin\/rkhunter -c \u2013cronjob 2&gt;&amp;1 | mail -s \u201cDaily Rkhunter Scan Report\u201d email@domain.com) #chmod x \/e #chmod x \/etc\/cron.daily\/rkhunter.sh #rkhunter&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[664],"tags":[120,121],"class_list":["post-832","post","type-post","status-publish","format-standard","hentry","category-web-hosting","tag-install-rkhunter-cronjob","tag-rkhunter-cronjob"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install RKHunter and Schedule It with a Cron Job<\/title>\n<meta name=\"description\" content=\"Learn how to install and configure RKHunter in a cron job to automate rootkit scans on your Linux server, enhancing security and detecting potential threats.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install RKHunter and Schedule It with a Cron Job\" \/>\n<meta property=\"og:description\" content=\"Learn how to install and configure RKHunter in a cron job to automate rootkit scans on your Linux server, enhancing security and detecting potential threats.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2008-06-07T23:45:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:04:55+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\"},\"headline\":\"How to install rkhunter to a cronjob\",\"datePublished\":\"2008-06-07T23:45:27+00:00\",\"dateModified\":\"2026-02-26T14:04:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/\"},\"wordCount\":313,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Install RKHunter Cronjob\",\"Rkhunter Cronjob\"],\"articleSection\":[\"Web Hosting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/\",\"name\":\"How to Install RKHunter and Schedule It with a Cron Job\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2008-06-07T23:45:27+00:00\",\"dateModified\":\"2026-02-26T14:04:55+00:00\",\"description\":\"Learn how to install and configure RKHunter in a cron job to automate rootkit scans on your Linux server, enhancing security and detecting potential threats.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/install-rkhunter-cronjob\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Web Hosting\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/web-hosting\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install rkhunter to a cronjob\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install RKHunter and Schedule It with a Cron Job","description":"Learn how to install and configure RKHunter in a cron job to automate rootkit scans on your Linux server, enhancing security and detecting potential threats.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/","og_locale":"en_US","og_type":"article","og_title":"How to Install RKHunter and Schedule It with a Cron Job","og_description":"Learn how to install and configure RKHunter in a cron job to automate rootkit scans on your Linux server, enhancing security and detecting potential threats.","og_url":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2008-06-07T23:45:27+00:00","article_modified_time":"2026-02-26T14:04:55+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/"},"author":{"name":"admin","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9"},"headline":"How to install rkhunter to a cronjob","datePublished":"2008-06-07T23:45:27+00:00","dateModified":"2026-02-26T14:04:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/"},"wordCount":313,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Install RKHunter Cronjob","Rkhunter Cronjob"],"articleSection":["Web Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/","url":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/","name":"How to Install RKHunter and Schedule It with a Cron Job","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2008-06-07T23:45:27+00:00","dateModified":"2026-02-26T14:04:55+00:00","description":"Learn how to install and configure RKHunter in a cron job to automate rootkit scans on your Linux server, enhancing security and detecting potential threats.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/install-rkhunter-cronjob\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Web Hosting","item":"https:\/\/www.bodhost.com\/kb\/category\/web-hosting\/"},{"@type":"ListItem","position":2,"name":"How to install rkhunter to a cronjob"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.bodhost.com\/kb\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=832"}],"version-history":[{"count":6,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/832\/revisions"}],"predecessor-version":[{"id":14216,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/832\/revisions\/14216"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}