Why does SELinux context of /etc/shadow change when NIS-user's password is changed from NIS-client?

Solution Verified - Updated -

Issue

  • Password change operation by the NIS User from NIS Client changes the SELinux context of the file /etc/shadow on NIS Server.
  • Running the command yppasswd <nis-user> from NIS Client change context of file /etc/shadow/ on NIS Server from shadow_t to etc_t.

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • NIS Server(Master) running on RHEL 7/8

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