Blame doc/aide.1

Packit 762fc5
.TH AIDE 1 "Jul 25, 2016" "aide 0.16" "User Commands"
Packit 762fc5
.SH NAME
Packit 762fc5
\fBaide\fP \- Advanced Intrusion Detection Environment
Packit 762fc5
.SH SYNOPSIS
Packit 762fc5
\fBaide\fP
Packit 762fc5
\%[\fBparameters\fP]
Packit 762fc5
\%\fBcommand\fP
Packit 762fc5
.SH DESCRIPTION
Packit 762fc5
\fBAIDE\fP is an intrusion detection system for checking the integrity
Packit 762fc5
of files.
Packit 762fc5
Packit 762fc5
.SH COMMANDS
Packit 762fc5
.PP
Packit 762fc5
.IP "--check, -C"
Packit 762fc5
Checks the database for inconsistencies. You must have an initialized
Packit 762fc5
database to do this. This is also the default command. Without any
Packit 762fc5
command \fBaide\fP does a check.
Packit 762fc5
.IP "--init, -i"
Packit 762fc5
Initialize the database. You must initialize a database and move it to
Packit 762fc5
the appropriate place before you can use the \-\-check command.
Packit 762fc5
.IP "--update, -u"
Packit 762fc5
Checks the database and updates the database non-interactively.
Packit 762fc5
The input and output databases must be different.
Packit 762fc5
.IP "--compare, -E"
Packit 762fc5
Compares two databases. They must be defined in config file with
Packit 762fc5
database=<url> and database_new=<url>.
Packit 762fc5
.IP "--config-check, -D"
Packit 762fc5
Stops after reading in the configuration file. Any errors will be reported.
Packit 762fc5
If \fBaide\fP was compiled with the \(dq\fB--with-dbhmackey\fR\(dq option,
Packit 762fc5
a hash for the config file will be calculated. See the AIDE manual for more
Packit 762fc5
information.
Packit 762fc5
.SH PARAMETERS
Packit 762fc5
.IP "--config=\fBconfigfile\fR , -c \fBconfigfile\fR"
Packit 762fc5
Configuration is read from file \fBconfigfile\fR instead of "./aide.conf". Use '-' for stdin.
Packit 762fc5
.IP "--limit=\fBREGEX\fR , -l \fBREGEX\fR"
Packit 762fc5
Limit command to entries matching REGEX. Note that the REGEX only matches
Packit 762fc5
at the first position.
Packit 762fc5
Packit 762fc5
.RS
Packit 762fc5
.B Example
Packit 762fc5
.RS 3
Packit 762fc5
Only check and update the database entries matching /etc (i.e. the /etc
Packit 762fc5
directory) while leaving all other entries unchecked and unchanged:
Packit 762fc5
Packit 762fc5
.RS 3
Packit 762fc5
.nf
Packit 762fc5
aide --update --limit /etc
Packit 762fc5
.fi
Packit 762fc5
.RE
Packit 762fc5
.RE
Packit 762fc5
.RE
Packit 762fc5
Packit 762fc5
.IP "--before=\(dq\fBconfigparameters\fR\(dq , -B \(dq\fBconfigparameters\fR\(dq"
Packit 762fc5
These \fBconfigparameters\fR are handled before the reading of the
Packit 762fc5
configuration file. See aide.conf (5) for more details on what to put
Packit 762fc5
here.
Packit 762fc5
.IP "--after=\(dq\fBconfigparameters\fR\(dq , -A \(dq\fBconfigparameters\fR\(dq"
Packit 762fc5
These \fBconfigparameters\fR are handled after the reading of the
Packit 762fc5
configuration file. See aide.conf (5) for more details on what to put
Packit 762fc5
here.
Packit 762fc5
.IP --verbose=\fBverbosity_level\fR,-V\fBverbosity_level\fR
Packit 762fc5
Controls how verbose \fBaide\fP is. Value must [0-255]. The default is
Packit 762fc5
5. With no argument Value is set to 20. This parameter overrides the
Packit 762fc5
value set in a configuration file.
Packit 762fc5
.IP "--report=\fBreporter\fR,-r \fBreporter\fR"
Packit 762fc5
\fBreporter\fR is a URL which tells \fBaide\fP where to send it's
Packit 762fc5
output. See aide.conf (5) section URLS for available values.
Packit 762fc5
.IP "--version,-v"
Packit 762fc5
\fBaide\fP prints out its version number
Packit 762fc5
.IP "--help,-h"
Packit 762fc5
Prints out the standard help message.
Packit 762fc5
.PP
Packit 762fc5
.SH DIAGNOSTICS
Packit 762fc5
Normally, the exit status is 0 if no errors occurred. Except when the
Packit 762fc5
.BR --check ,
Packit 762fc5
.BR --compare " or"
Packit 762fc5
.B --update
Packit 762fc5
command was requested, in which case the exit status is defined as:
Packit 762fc5
.IP "1 * (new files detected?)     +"
Packit 762fc5
.IP "2 * (removed files detected?) +"
Packit 762fc5
.IP "4 * (changed files detected?)"
Packit 762fc5
.PP
Packit 762fc5
Additionally, the following exit codes are defined for generic error
Packit 762fc5
conditions:
Packit 762fc5
.IP "14 Error writing error"
Packit 762fc5
.IP "15 Invalid argument error"
Packit 762fc5
.IP "16 Unimplemented function error"
Packit 762fc5
.IP "17 Invalid configureline error"
Packit 762fc5
.IP "18 IO error"
Packit 762fc5
.IP "19 Version mismatch error"
Packit 762fc5
.PP
Packit 762fc5
.SH NOTES
Packit 762fc5
Please note that due to mmap issues, aide cannot be terminated with
Packit 762fc5
SIGTERM. Use SIGKILL to terminate.
Packit 762fc5
Packit 762fc5
The checksums in the database and in the output are by default base64
Packit 762fc5
encoded (see also report_base16 option).
Packit 762fc5
To decode them you can use the following shell command:
Packit 762fc5
Packit 762fc5
echo <encoded_checksum> | base64 \-d | hexdump \-v \-e '32/1 "%02x" "\\n"'
Packit 762fc5
Packit 762fc5
.PP
Packit 762fc5
.SH FILES
Packit 762fc5
.IP \fB${prefix}/etc/aide.conf\fR
Packit 762fc5
Default aide configuration file.
Packit 762fc5
.IP \fB${prefix}/etc/aide.db\fR
Packit 762fc5
Default aide database.
Packit 762fc5
.IP \fB${prefix}/etc/aide.db.new\fR
Packit 762fc5
Default aide output database.
Packit 762fc5
.SH SEE ALSO
Packit 762fc5
.BR aide.conf (5)
Packit 762fc5
.BR manual.html
Packit 762fc5
.SH BUGS
Packit 762fc5
There are probably bugs in this release. Please report them
Packit 762fc5
at http://sourceforge.net/projects/aide . Bug fixes are more than welcome.
Packit 762fc5
Unified diffs are preferred.
Packit 762fc5
.SH DISCLAIMER
Packit 762fc5
All trademarks are the property of their respective owners.
Packit 762fc5
No animals were harmed while making this webpage or this piece of
Packit 762fc5
software. Although some pizza delivery guy's feelings were hurt.
Packit 762fc5
.BR