Error running logrotate: error: Ignoring novell-tomcat8 because of bad file mode - must be 0644 or 0444.

  • 7024262
  • 13-Nov-2019
  • 17-Nov-2019

Environment

iManager 3.X

Situation

logrotate -d /etc/logrotate.conf 
reading config file /etc/logrotate.conf
including /etc/logrotate.d
error: Ignoring novell-tomcat8 because of bad file mode - must be 0644 or 0444.

ll /etc/logrotate.d/novell-tomcat8
lrwxrwxrwx. 1 novlwww novlwww  43 Jul 24 10:09 novell-tomcat8 -> /etc/opt/novell/tomcat8/logrotate.d/tomcat8

ll /etc/opt/novell/tomcat8/logrotate.d/tomcat8
-rwxr-xr-x 1 novlwww novlwww 224 Feb 22  2018 


Resolution

Change permissions on the /etc/opt/novell/tomcat8/logrotate.d/tomcat8 file to either 0644 or 0444
chmod 0644 /etc/opt/novell/tomcat8/logrotate.d/tomcat8

Change ownership to root owner and root group
chown root:root /etc/opt/novell/tomcat8/logrotate.d/tomcat8