2024年6月28日 星期五

Logrotate 因為父目錄權限而執行失敗

錯誤訊息
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.

修改設定檔
/etc/logrotate.conf
/etc/logrotate.d/*

加入 su root root 設定

沒有留言: