2024-07-03

Logrotate failed because parent directory has insecure permissions (It's world writable or writable by group which is not "root")

 

Error:

error: skipping "output.log" 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.



Googled: Set "su" directive in config file to tell logrotate which user/group should be used for rotation.


Reference URL: https://www.suse.com/support/kb/doc/?id=000017263

su user group

in logrotate config file




/var/log/tomcat5/base/*.txt {
    su tomcat tomcat
    notifempty
    copytruncate
    weekly
    rotate 52
    compress
    missingok
}

/var/log/tomcat5/base/catalina.out {
    su tomcat tomcat
    notifempty
    copytruncate
    weekly
    rotate 52
    compress
    missingok
}


No comments:

Google Referrals