touch /var/log/secure chmod 600 /var/log/secure service sshd restart service syslog(rsyslog) restart
- 即:重建文件修改权限后要记得重启下服务
Linux下误删secure文件,系统不记录日志问题
最新推荐文章于 2024-03-18 15:30:18 发布
touch /var/log/secure
chmod 600 /var/log/secure
service sshd restart
service syslog(rsyslog) restart