To switch user when you are in the sudoers list:
sudo su - username
Linux will then ask you to type your password (not the user you are switching to, but the user you are logged in as). You can always do whoami to check who you are running the command as
whoami
Leave a comment