【发布时间】:2012-06-01 10:53:52
【问题描述】:
尝试使用 logrotate,但在为 logrotate.d 中的特定定义运行日志轮换脚本时出现以下错误
error: error creating state file /var/lib/logrotate/status: Permission denied
/var/lib/logrotate$ ls -lah
total 12K
drwxr-xr-x 2 root root 4.0K 2012-05-11 06:25 .
drwxr-xr-x 43 root root 4.0K 2012-05-18 08:07 ..
-rw-r--r-- 1 root root 911 2012-05-25 06:25 status
我没有接触过那个路径,所以我想知道为什么它默认会产生错误......
【问题讨论】: