文件操作 - auditd.cron
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/audit/auditd.cron
编辑文件内容
#!/bin/sh ########## # This script can be installed to the cron system to get log rotation # based on time instead of log size. ########## /sbin/auditctl --signal usr1 EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t auditd "ALERT auditctl exited abnormally with [$EXITVALUE] while rotating the logs" fi exit 0
修改文件时间
将文件时间修改为当前时间的前一年
删除文件