Logrotate & Permission denied error

How to fix Permission denied error from Logrotate.

On this page

The Permission deniederror is most likely to appear from security misconfiguration over the /var/log folders where log files are stored.

Disable SElinux

To disable SELinux, follow these instructions:

 $ setenforce 0

Important: This will temporarily disable the operating system security check. The next time you reboot the server, selinux will be back on.

With setenforce 0, you can troubleshoot the Logrotate configuration to determine the exact cause of the Permission deniederror.