In this post we will see how we can give to another user the root privileges using sudo command. Before of all, let’s explain what is sudo.
In the Linux, there is a account called root. This one, can do anything in your system without restriction. By default, Ubuntu leave this account locked, you cannot do login with it. You will have access as root using the command sudo that was configured when you created the user during the installation.
So, to give access of root to another user, open a shell and run:
sudo adduser [user name] admin
Where user name is the user you would like to give root privileges. For example:
sudo adduser kde-devel admin
The command above will add the user kde-devel to the admin group. After that, if you would like to remove it, run:
sudo deluser kde-devel admin
That’s it folks. See you next time.