Debian Codegraph @

doc/aide.1

raw
1 .TH AIDE 1 "2026-08-30" "aide v0.19.4" "User Commands"
2 .SH NAME
3 \fBaide\fP \- Advanced Intrusion Detection Environment
4 .SH SYNOPSIS
5 \fBaide\fP
6 \%[\fBparameters\fP]
7 \%\fBcommand\fP
8 .SH DESCRIPTION
9 \fBAIDE\fP is an intrusion detection system for checking the integrity
10 of files.
11
12 .SH COMMANDS
13 .PP
14 .IP "--check, -C"
15 Checks the database for inconsistencies. You must have an initialized
16 database to do this. This is also the default command. Without any
17 command \fBaide\fP does a check.
18 .IP "--init, -i"
19 Initialize the database. You must initialize a database and move it to
20 the appropriate place (see \fBdatabase_in\fR config option) before you can use
21 the \-\-check command.
22 .IP "--dry-init, -n (added in AIDE v0.17)"
23 Traverse the file system, match each file against the rule tree and report to stdout.
24
25 Neither reports nor the database are written in this mode.
26
27 To change the log level in this mode please use the \fB--log-level\fR command line parameter.
28
29 In this mode aide exits with status 0.
30
31 .IP "--update, -u"
32 Checks the database and updates the database non-interactively.
33 The input and output databases must be different.
34 .IP "--compare, -E"
35 Compares two databases. They must be defined in config file with
36 database=<url> and database_new=<url>.
37 .IP "--list (added in AIDE v0.19)"
38 List the entries of the database in human readable format (analogous to the
39 detailed report output of new files). Note that the checksums are base16 encoded.
40 .IP "--config-check, -D"
41 Stops after reading in the configuration file. Any errors will be reported.
42 To change the log level in this mode please use the \fB--log-level\fR
43 command line parameter.
44 .IP "--path-check=\fIfile_type\fR[=\fIfile_system_type\fR]:\fIpath\fR, -p \fIfile_type\fR[=\fIfile_system_type\fR]:\fIpath\fR (added in AIDE v0.17)"
45 Read configuration and match provided file_type, optionally file system type
46 (added in AIDE v0.19, Linux only) and path against rule tree.
47
48 The path is independent of what is in the actual file system and needs to be
49 absolute. See RESTRICTED RULES section in aide.conf (5) for supported file
50 types and file system types.
51
52 Please note that the specified file system type is only applied to the file and
53 not to the parent directories of the path. If a restricted rule cannot be
54 matched against a parent directory due to the missing file system type aide
55 raises a warning.
56
57 To change the log level in this mode please use the \fB--log-level\fR command line parameter.
58
59 In this mode aide exits with status 0 if the file would be added to the tree, 1
60 if not and 2 if the file does not match the specified limit.
61
62 .SH PARAMETERS
63 .IP "--config=\fBconfigfile\fR , -c \fBconfigfile\fR"
64 Configuration is read from file \fBconfigfile\fR (see \fB--version\fP output for default value).
65 Use '-' for stdin.
66 .IP "--limit=\fBREGEX\fR , -l \fBREGEX\fR (added in AIDE v0.16)"
67 Limit command to entries matching REGEX. Note that the REGEX only matches
68 at the first position.
69
70 .RS
71 .B Example
72 .RS 3
73 Only check and update the database entries matching /etc (i.e. the /etc
74 directory) while leaving all other entries unchecked and unchanged:
75
76 .RS 3
77 .nf
78 aide --update --limit /etc
79 .fi
80 .RE
81 .RE
82 .RE
83
84 .IP "--before=\(dq\fBconfigparameters\fR\(dq , -B \(dq\fBconfigparameters\fR\(dq"
85 These \fBconfigparameters\fR are handled before the reading of the
86 configuration file. See aide.conf (5) for more details on what to put
87 here.
88 .IP "--after=\(dq\fBconfigparameters\fR\(dq , -A \(dq\fBconfigparameters\fR\(dq"
89 These \fBconfigparameters\fR are handled after the reading of the
90 configuration file. See aide.conf (5) for more details on what to put
91 here.
92 .IP "--log-level=\fBlog_level\fR,-L\fBlog_level\fR (added in AIDE v0.17)"
93 The log level to use (see aide.conf (5) for available log levels and more details).
94 This overwrites the log_level value set in any configuration file.
95 .IP "--verbose=\fBverbosity_level\fR,-V\fBverbosity_level\fR (REMOVED in AIDE v0.17)"
96 Removed, use \fBlog_level\fR and \fBreport_level\fR config options instead (see aide.conf (5) for details).
97 .IP "--report=\fBreporter\fR,-r \fBreporter\fR (REMOVED in AIDE v0.17)"
98 Removed, use \fBreport_url\fR config option instead (see aide.conf (5) for details).
99 .IP "--workers=\fBWORKERS\fR , -W \fBWORKERS\fR (added in AIDE v0.18)"
100 Specifies the number of workers (see aide.conf (5) for details). This
101 overwrites the num_workers value set in any configuration file.
102 .IP "--no-progress (added in AIDE v0.19)"
103 Turn progress off explicitly. By default progress is shown if standard error is
104 connected to a terminal.
105 .IP "--no-color (added in AIDE v0.19)"
106 Turn colored log output off explicitly. By default colored log output is
107 enabled if standard error is connected to a terminal.
108 .IP "--version,-v"
109 Print version information and exit.
110 .IP "--help,-h"
111 Prints out the standard help message.
112 .PP
113 .SH EXIT STATUS
114 Normally, the exit status is 0 if no errors occurred. Except when the
115 .BR --check ,
116 .BR --compare " or"
117 .B --update
118 command was requested, in which case the exit status is defined as:
119 .IP "1 * (new files reported?) +"
120 .IP "2 * (removed files reported?) +"
121 .IP "4 * (changed files reported?)"
122 .PP
123 Since those three cases can occur together, the respective error codes
124 are added. For example, if there are new files and removed files reported,
125 the exit status will be 1 + 2 = 3.
126 .PP
127 Additionally, the following exit codes are defined for generic error
128 conditions:
129 .IP "14 Writing error"
130 .IP "15 Invalid argument error"
131 .IP "16 Unimplemented function error"
132 .IP "17 Configuration error"
133 .IP "18 IO error"
134 .IP "19 Version mismatch error"
135 .IP "20 EXEC error"
136 .IP "21 File lock error"
137 .IP "22 Memory allocation error"
138 .IP "23 Thread error"
139 .IP "24 Database error"
140 .IP "25 received SIGINT, SIGTERM or SIGHUP"
141 .PP
142 .SH SIGNAL HANDLING
143
144 .IP "\fBSIGINT\fR, \fBSIGTERM\fR, \fBSIGHUP\fR"
145
146 Remove an incompletely written database (only if database file was created by aide) and exit (code 25).
147
148 .IP \fBSIGUSR1\fR
149
150 Toggle the log_level between current and debug level.
151
152 \fBSIGUSR1\fR is only handled after config parsing.
153
154 .IP \fBSIGWINCH\fR
155
156 Resize the progress bar (if enabled).
157
158 .PP
159 .SH NOTES
160
161 .IP "Checksum encoding"
162
163 The checksums in the database and in the output are by default base64
164 encoded (see also report_base16 option).
165 To decode them you can use the following shell command:
166
167 echo <encoded_checksum> | base64 \-d | hexdump \-v \-e '32/1 "%02x" "\\n"'
168
169 .IP "Control characters"
170
171 Control characters (00-31 and 127) are always escaped in log and plain report
172 output. They are escaped by a literal backslash (\\) followed by exactly 3
173 digits representing the character in octal notation (e.g. a newline is output
174 as "\fB\\012\fR"). A literal backslash is not escaped unless it is followed by
175 3 digits (0-9), in this case the literal backslash is escaped as
176 "\fB\\134\fR". Reports in JSON format are escaped according to the JSON specs
177 (e.g. a newline is output as "\fB\\b\fR" or an escape (\fBESC\fR) is output as
178 "\fB\\u001b\fR")
179
180 .PP
181 .SH FILES
182
183 See \fB--version\fR output for the default \fBconfig file\fR and the
184 default \fBdatabase_in\fR and \fBdatabase_out\fR config values.
185
186 .SH SEE ALSO
187 .BR aide.conf (5)
188 .SH BUGS
189 There are probably bugs in this release. Please report them
190 at https://github.com/aide/aide/issues .
191 .SH DISCLAIMER
192 All trademarks are the property of their respective owners.
193 No animals were harmed while making this webpage or this piece of
194 software. Although some pizza delivery guy's feelings were hurt.
195 .BR