9.2. 使用 AIDE 执行完整性检查
前提条件
- AIDE 已正确安装,其数据库已初始化。请参阅 安装 AIDE
流程
启动手动检查:
# aide --check Start timestamp: 2018-07-11 12:41:20 +0200 (AIDE 0.16) AIDE found differences between database and filesystem!! ... [trimmed for clarity]
至少,将系统配置为每周运行 AIDE。最好每天运行 AIDE。例如,要使用
cron
命令计划在每天 04:05 a.m. 执行一次 AIDE,请在/etc/crontab
文件中添加以下行:05 4 * * * root /usr/sbin/aide --check