Why is an user switching to the root account while executing 'sudo su - <other_user>' in Red Hat Enterprise Linux?

Solution Unverified - Updated -


  • sudo is not working correctly, it's switching only to root even though another user is specify:
[test_B@localhost ~]$ sudo su - test_user
[root@localhost test_B ~]#


  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

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