如何配置 AIX Unix 系统中的审核功能来收集有关删除目录的信息(尽管rmdir
)并将其发送到 syslog?
答案1
试试这个(#
意味着升级权限):
# smit syslog # install syslog
# chuser audit=true <user you wish> # enable auditing
# echo "rmdir:fac=AUE_RMDIR:lo=none:hi=none" >> /etc/security/audit/config
# startsrc -s auditd # start the daemon
$ rmdir some-dir
# grep AUE_RMDIR /var/log/syslog.log # check if info was collected