Unable to switch from one user to another user using su on RHEL server

Solution Verified - Updated -

Issue

  • Users are unable to switch to another user account using the su command.
  • Direct SSH to the target user works, but switching internally via su fails.
  • Error received:
[testuser@testserver ~]$ su - suuser2
Password: 
su: Authentication failure
  • The su command works for the root user, but not for non-privileged users, confirming that the command itself is functional.

Environment

  • Red Hat Enterprise Linux 9.x
  • Red Hat Enterprise Linux 8.x

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