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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In