I have installed two vagrant hosts on my machine. I login using user/pass: vagrant/vagrant Created a user user1.
When I am in vagrant user and type below command :
[vagrant@host1]sudo su -
I am able to login to root without specifying a password. Also when I type the command :
[vagrant@host1]sudo su - user1
I get switched to user1. But when I do the same thing with user1 account it ask for user1 password before switching. Why is it so?