[syslog-ng] error: skipping “folder/syslog” because parent directory has insecure permissions

  • Post author:
  • Post category:其他


Logrotate 执行失败



Log :


error: skipping “/user/log/syslog” because parent directory has insecure permissions (It’s world writable or writable by group which is not “root”) Set “su” directive in config file to tell logrotate which user/group should be used for rotation.


Root Cause :

父Folder的 Group和Other 有权限‘write’ 导致logrotate认为你是不安全的


Solution :

chmod o-w /user/log

chmod g-w /user/log

之后可以强制运行logrotate看是否生效

logrotate -f /etc/logrotate.conf



版权声明:本文为jilong407原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。