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

Solution Unverified - Updated -

Issue

  • 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 ~]#

Environment

  • 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, 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