'realm join' command failed with an error "Couldn't join realm: Enabling SSSD in nsswitch.conf and PAM failed."

Solution Verified - Updated -

Issue

  • realm join command failed with an error "Couldn't join realm: Enabling SSSD in nsswitch.conf and PAM failed."
[error] Unable to get current fscreate selinux context!
[error] Unable to create temporary file for [/var/lib/authselect/system-auth] [5]: Input/output error
[error] Unable to write temporary file [/var/lib/authselect/system-auth] [5]: Input/output error
[error] Unable to write generated system files [5]: Input/output error
[error] Unable to activate profile [sssd] [5]: Input/output error
Unable to activate profile [5]: Input/output error
 ! Enabling SSSD in nsswitch.conf and PAM failed.
realm: Couldn't join realm: Enabling SSSD in nsswitch.conf and PAM failed.

The issue seems to be with the authselect command, see the attached outputs

Environment

  • Red Hat Enterprise Linux 8
  • authselect

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