RHEL users get error "could not open session" when trying to su

Solution Verified - Updated -

Issue

  • I have several RHEL boxes that are posting the following error when the users try to su or sudo to another UID.

  • I can ssh into the box without any problem as root or as my regular user, but when I try to su or sudo to another UID we get the error.

[root]# su - testuser
could not open session

There is nothing in the logs that indicates why this is happening. I've rebooted the box and performed an fsck on the partitions to verify that they are all good.

Environment

  • Red Hat Enterprise Linux (RHEL) - multiple versions

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