who -m command is not giving any output.

Solution Verified - Updated -

Issue

  • who -m command is not giving any output.
  • who -m not working any more once su to root to determine Real uid
# sudo -u user -i
# who am i | wc -l
0 <---------- no output

Environment

  • Red Hat Enterprise Linux 7
    • seen on sudo-1.8.23-3.el7

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