{"id":2669,"date":"2016-09-07T17:51:21","date_gmt":"2016-09-07T21:51:21","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2669"},"modified":"2017-12-12T15:54:59","modified_gmt":"2017-12-12T20:54:59","slug":"install-use-lmd-clamav-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/","title":{"rendered":"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16"},"content":{"rendered":"<h1>How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16<\/h1>\n<p>Though Linux is a less targeted operating system, it&#8217;s still important to monitor for malware. One of the best tools out there for doing so is Linux Malware Detect, which uses a variety of metrics to identify and remove malware. When used in conjunction with ClamAV, the well known antivirus solution for Linux (as well as Mac and Windows), Linux Malware Detect provides a very good defense against malicious software.<\/p>\n<h2>Getting Started<\/h2>\n<p>The steps of this guide requires you to have the following:<br \/>\n\u2022 1 server (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running Ubuntu 16.<br \/>\n\u2022 Root access to the server<\/p>\n<h2>Tutorial<\/h2>\n<p>In order to install Linux Malware Detect, you&#8217;ll first need to download the installation tarball from the project\u2019s web site. You can find it at this address.<\/p>\n<p><code>wget http:\/\/www.rfxn.com\/downloads\/maldetect-current.tar.gz<\/code><\/p>\n<p>Take your tarball and extract it into \/usr\/src\/. Change into the resulting directory.<\/p>\n<p><code>cd \/usr\/src<br \/>\ntar -xvf maldetect-current.tar.gz<br \/>\ncd maldetect*<\/code><\/p>\n<p>An installation script is available for you to install LMD. Run it using this command:<\/p>\n<p><code>.\/install.sh<\/code><\/p>\n<p>Now let&#8217;s configure our Linux Malware Detect installation. We&#8217;ll need to make a few basic modifications to the default configuration file, so go ahead and open it in a text editor:<\/p>\n<p><code>nano \/usr\/local\/maldetect\/conf.maldet<\/code><\/p>\n<p>Here are the settings as they should look:<\/p>\n<p><code class=\"gris\">email_alert=\"1\"<br \/>\nemail_addr=\"youremail@localhost\"<br \/>\nquarantine_hits=\"1\"<br \/>\nquarantine_clean=\"1\"<br \/>\nquarantine_suspend_user=\"1\"<br \/>\nscan_clamscan=\"1\"<\/code><\/p>\n<p>Next, we&#8217;ll be installing ClamAV, so that Linux Malware Detect can use it as its antivirus engine.<\/p>\n<p><code>apt-get install clamav -y<br \/>\nfreshclam<\/code><\/p>\n<p>You can do a lot with Linux Malware Detect. Here&#8217;s a sample of some commands you may find useful.<\/p>\n<p>To update the library of malware detection signatures:<\/p>\n<p><code>maldet -u<\/code><\/p>\n<p>To update Linux Malware Detect&#8217;s malware versions:<\/p>\n<p><code>maldet -d<\/code><\/p>\n<p>To scan all the files residing in a specific directory:<\/p>\n<p><code>maldet -a \/path<\/code><\/p>\n<p>To put all threats that Linux Malware Detect has identified into quarantine:<\/p>\n<p><code>maldet -q SCANID<\/code><\/p>\n<p>To restore files from quarantine:<\/p>\n<p><code>maldet \u2013s SCANID<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>With Linux Malware Detect and ClamAV, you can rest easy knowing that you&#8217;ve got one of the premiere antimalware and antivirus solutions available for Linux. If you found this article helpful, feel free to share it with your friends and let us know in the comments below!<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16 Though Linux is a less targeted operating system, it&#8217;s still important to monitor for malware. One of the best tools out there for doing so is Linux Malware Detect, which uses a variety of metrics to identify and remove malware. When<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"class_list":["post-2669","post","type-post","status-publish","format-standard","hentry","category-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will walk you through the installation and the use of Linux Malware Detect used with ClamAV as an Antivirus Engine for your Ubuntu 16 Server.\" \/>\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.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will walk you through the installation and the use of Linux Malware Detect used with ClamAV as an Antivirus Engine for your Ubuntu 16 Server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-07T21:51:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T20:54:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/\",\"name\":\"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"datePublished\":\"2016-09-07T21:51:21+00:00\",\"dateModified\":\"2017-12-12T20:54:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will walk you through the installation and the use of Linux Malware Detect used with ClamAV as an Antivirus Engine for your Ubuntu 16 Server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16 - Globo.Tech","description":"This tutorial will walk you through the installation and the use of Linux Malware Detect used with ClamAV as an Antivirus Engine for your Ubuntu 16 Server.","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.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/","og_locale":"en_US","og_type":"article","og_title":"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16 - Globo.Tech","og_description":"This tutorial will walk you through the installation and the use of Linux Malware Detect used with ClamAV as an Antivirus Engine for your Ubuntu 16 Server.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/","og_site_name":"Globo.Tech","article_published_time":"2016-09-07T21:51:21+00:00","article_modified_time":"2017-12-12T20:54:59+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/","url":"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/","name":"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-09-07T21:51:21+00:00","dateModified":"2017-12-12T20:54:59+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will walk you through the installation and the use of Linux Malware Detect used with ClamAV as an Antivirus Engine for your Ubuntu 16 Server.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-use-lmd-clamav-ubuntu-16\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to install and use Linux Malware Detect (LMD) with ClamAV on Ubuntu 16"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2669"}],"version-history":[{"count":4,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2669\/revisions"}],"predecessor-version":[{"id":4002,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2669\/revisions\/4002"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}