How to change the /var/log/wtmp file permissions from default (664) to whatever we want?

Solution Verified - Updated -

Issue

  • Need to change the permission permanently for /var/log/wtmp
  • If I change the permission for /var/log/wtmp file in the logrotate.conf file then it gets reverted to default following the reboot.
  • Permission for /var/log/wtmp is getting changed. Why?

Environment

  • RHEL 7.1
  • permissions

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