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