1. Create new user
adduser username
  1. Give the user sudo privileges:
usermod -aG sudo username
  1. Switch to that user:
# Switch to another user (with their environment) 
su - username 
 
# Switch to another user (keeping current environment) 
su username
 
# Switch to root with environment 
sudo -i

Tip

# See who is logged in 
who 
# See who is logged in with more details 
w