9.2. Installing AIDE
To install the aide package, enter the following command as
root
:
~]# yum install aide
To generate an initial database, enter the following command as
root
:
~]# aide --init
AIDE, version 0.14
### AIDE database at /var/lib/aide/aide.db.new.gz initialized.
Note
In the default configuration, the
aide --init
command checks just a set of directories and files defined in the /etc/aide.conf
file. To include additional directories or files in the AIDE database, and to change their watched parameters, edit /etc/aide.conf
accordingly.
To start using the database, remove the
.new
substring from the initial database file name:
~]# mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
To change the location of the AIDE database, edit the
/etc/aide.conf
file and modify the DBDIR
value. For additional security, store the database, configuration, and the /usr/sbin/aide
binary file in a secure location such as a read-only media.
Important
To avoid SELinux denials after the AIDE database location change, update your SELinux policy accordingly. See the SELinux User's and Administrator's Guide for more information.