How to switch to another user using sudo in Ubuntu 12.04 shell

 Posted April 12, 2016

Usage: sudo -u <username> <shell>

Assuming your account has root/sudo permissions:

You may have to type in your password (not the password of the account you’re switching to.)

Just type “exit” to get back to your original session:

 

Speak Your Mind

*