{"id":11369,"date":"2021-10-29T10:25:57","date_gmt":"2021-10-29T10:25:57","guid":{"rendered":"https:\/\/linuxways.net\/?p=11369"},"modified":"2021-10-29T10:25:57","modified_gmt":"2021-10-29T10:25:57","slug":"how-to-install-aide-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-aide-on-ubuntu-20-04\/","title":{"rendered":"How to Install AIDE on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>AIDE is an acronym for Advanced Intrusion Detection Environment. It is a system that detects changes to files on the local system.<\/p>\n<p>AIDE sets up the database based on regular expression rules in the configuration file. It can be used to check for legitimate changes of files after the database is created. It uses several message algorithms such as md5, sha1, rmd160, tiger, haval, &#8230; to check file integrity.<\/p>\n<p>Below is the section that guides you on how to Install AIDE on Ubuntu 20.04 as you go through below.<\/p>\n<h2>Installing AIDE<\/h2>\n<p><strong>Step 1<\/strong>: Run the apt command to update packages<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"125\" class=\"wp-image-11370\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-434.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-434.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-434-300x36.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-434-1024x123.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-434-768x92.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>Step 2<\/strong>: Run the apt command to install AIDE<\/p>\n<pre>$ sudo apt install aide<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"637\" class=\"wp-image-11371\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-435.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-435.png 1041w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-435-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-435-1024x627.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-435-768x470.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/p>\n<p>Press <strong>Enter<\/strong>, then it will show the following table: <img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"636\" class=\"wp-image-11372\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-436.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-436.png 1041w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-436-300x183.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-436-1024x626.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-436-768x469.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/p>\n<p>Let\u2019s provide your mail name then press <strong>Enter<\/strong><\/p>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"188\" class=\"wp-image-11373\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-437.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-437.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-437-300x54.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-437-1024x185.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-437-768x139.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<h2>Configuring AIDE<\/h2>\n<p><strong>1. You need to check your AIDE version:<\/strong><\/p>\n<pre>$ aide -v<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"393\" class=\"wp-image-11374\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-438.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-438.png 1041w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-438-300x113.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-438-1024x387.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-438-768x290.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/p>\n<p><strong>2. Create a new AIDE database by using the aideinit script:<\/strong><\/p>\n<pre>$ sudo aideinit<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"545\" class=\"wp-image-11375\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-439.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-439.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-439-300x157.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-439-1024x536.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-439-768x402.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>3. To install new AIDE database, you must copy it to place:<\/strong><\/p>\n<pre>$ sudo cp \/var\/lib\/aide\/aide.db.new \/var\/lib\/aide\/aide.db<\/pre>\n<p><strong>4. Update the AIDE configuration:<\/strong><\/p>\n<pre>$ sudo update-aide.conf<\/pre>\n<p><strong>5. Copy the AIDE configuration file to another directory<\/strong><\/p>\n<pre>$ sudo cp \/var\/lib\/aide\/aide.conf.autogenerated \/etc\/aide\/aide.conf<\/pre>\n<h2>Test the AIDE<\/h2>\n<p><strong>1. Manual database check based on the new configuration<\/strong><\/p>\n<pre>$ aide -c \/etc\/aide\/aide.conf -C<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1043\" height=\"422\" class=\"wp-image-11376\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-440.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-440.png 1043w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-440-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-440-1024x414.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-440-768x311.png 768w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/p>\n<p><strong>2. Update the database<\/strong><\/p>\n<pre>$ sudo aide -c \/etc\/aide\/aide.conf --update<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"351\" class=\"wp-image-11377\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-441.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-441.png 1041w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-441-300x101.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-441-1024x345.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-441-768x259.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/p>\n<p><strong>3. Check database entries for match \/etc<\/strong><\/p>\n<pre>$ aide -c \/etc\/aide\/aide.conf --limit \/etc --check<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"423\" class=\"wp-image-11378\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-442.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-442.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-442-300x122.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-442-1024x416.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-442-768x312.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>We just showed you how to install AIDE on Ubuntu 20.04.<\/p>\n<p>Thanks for reading!<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction AIDE is an acronym for Advanced Intrusion Detection Environment. It is a system that detects changes to files on the local system. AIDE sets up the database&hellip;<\/p>","protected":false},"author":1,"featured_media":11689,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[646,100],"class_list":["post-11369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-aide","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=11369"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11369\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/11689"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=11369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=11369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=11369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}