How to Add Adaptable Super User - part 3

Testing the new user

Now, The dingo user can login with the credentials of the root

 user@home:~# ssh -i work.key dingo@work
 Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-34-generic x86_64)
 ...
 dingo@work:~#

However, It can not run commands which require root security privileges:

 dingo@work:~# apt install apache2
 E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
 E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

When it is required to run a command as root, The sudo command should be invoked. The sudo command takes a command and invoked it as root. For example, sudo whoami will run whoami as root.

 dingo@work:~$ whoami
 dingo
 dingo@work:~$ sudo whoami
 [sudo] password for dingo:
 root

Using this command, we can run the above command which requires root privileges.

 dingo@work:~# sudo apt install apache2
 [sudo] password for dingo:
 ...