How to give root privileges to another user in Ubuntu

Posted: April 30, 2011 in Ubuntu
Tags: ,

Hello folks.

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.

  1. Dave says:

    wohooooooooxxxxxx 😀

  2. Papi says:

    I found some sites where they do the: sudo adduser paul admin

    but my linux does not have the admin group so I use:

    sudo adduser paul sudo

  3. It’s remarkable to go to see this website and reading the views of all mates about this paragraph, while I am also zealous of getting knowledge.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s