cvsextras 9fe78c
1) Customize /etc/aide.conf to your liking. In particular, add
cvsextras 9fe78c
   important directories and files which you would like to be
cvsextras 9fe78c
   covered by integrity checks. Avoid files which are expected
cvsextras 9fe78c
   to change frequently or which don't affect the safety of your
cvsextras 9fe78c
   system.
cvsextras 9fe78c
cvsextras 9fe78c
2) Run "/usr/sbin/aide --init" to build the initial database.
cvsextras 9fe78c
   With the default setup, that creates /var/lib/aide/aide.db.new.gz
cvsextras 9fe78c
cvsextras 9fe78c
3) Store /etc/aide.conf, /usr/sbin/aide and /var/lib/aide/aide.db.new.gz
cvsextras 9fe78c
   in a secure location, e.g. on separate read-only media (such as
cvsextras 9fe78c
   CD-ROM). Alternatively, keep MD5 fingerprints or GPG signatures
cvsextras 9fe78c
   of those files in a secure location, so you have means to verify
cvsextras 9fe78c
   that nobody modified those files.
cvsextras 9fe78c
cvsextras 9fe78c
4) Copy /var/lib/aide/aide.db.new.gz to /var/lib/aide/aide.db.gz
cvsextras 9fe78c
   which is the location of the input database.
cvsextras 9fe78c
cvsextras 9fe78c
5) Run "/usr/sbin/aide --check" to check your system for inconsistencies
cvsextras 9fe78c
   compared with the AIDE database. Prior to running a check manually,
cvsextras 9fe78c
   ensure that the AIDE binary and database have not been modified
cvsextras 9fe78c
   without your knowledge.
cvsextras 9fe78c
   
cvsextras 9fe78c
   Caution! 
cvsextras 9fe78c
   
cvsextras 9fe78c
   With the default setup, an AIDE check is not run periodically as a
cvsextras 9fe78c
   cron job. It cannot be guaranteed that the AIDE binaries, config
cvsextras 9fe78c
   file and database are intact. It is not recommended that you run
cvsextras 9fe78c
   automated AIDE checks without verifying AIDE yourself frequently.
cvsextras 9fe78c
   In addition to that, AIDE does not implement any password or
cvsextras 9fe78c
   encryption protection for its own files.
cvsextras 9fe78c
   
cvsextras 9fe78c
   It is up to you how to put a file integrity checker to good effect
cvsextras 9ad39a
   and how to set up automated checks if you think it adds a level of
cvsextras 9fe78c
   safety (e.g. detecting failed/incomplete compromises or unauthorized
cvsextras 9fe78c
   modification of special files). On a compromised system, the
cvsextras 9fe78c
   intruder could disable the automated check. Or he could replace the
cvsextras 9fe78c
   AIDE binary, config file and database easily when they are not
cvsextras 9fe78c
   located on read-only media. 
cvsextras 9fe78c