log into user ubuntu as root code example
Example 1: how to open terminal as administrator in ubuntu
# in terminal type
sudo su
# now enter your login password
Example 2: how to become root user in ubuntu
sudo passwd root
# in terminal type
sudo su
# now enter your login password
sudo passwd root