Sudo and edit other user's info.

i did a mistake. :frowning:

user1 ]$ vi ~/.bashrc
sudo su - user2

now , whenever I try to login to user1 , it will login to user2.

How can I resolve this ? :rolleyes:

N.B
-- I do not have root access.
-- I dont know password of user2
-- this is a virtual machine.

Run exit and return to user1 prompt, then modify the bashrc again.

Regards
Peasant.