logrotate fails to rotate radius.log after updating freeradius package

Solution Verified - Updated -

Issue

  • root user received a mail after logrotate runs
  • The mail contains errors like below.

example 1

/etc/cron.daily/logrotate:
error: error setting owner of /var/log/radius/radius.log to uid 0 and gid 0: Operation not permitted

example 2

/etc/cron.daily/logrotate:
error: error opening /var/log/radius/radius.log-20200901.gz: Permission denied
  • How can we avoid these errors?

Environment

  • Red Hat Enterprise Linux 7
  • freeradius-3.0.13-15.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content