I want to create a user having sudo powers in Ubuntu. How can I do that?
|
|
|
First, create the user with:
You can read more about this command in the man pages of your system with You can then add a user to the
Note that versions of Ubuntu until 11.10 will use
If your system does not, then we need to mess with the sudoers file to grant sudo permissions. You can read about the sudoers file with
|
|||||||||||||||||||||
|
|
The "popular" answer is how to "reimplement", not "how to add the user?". Bare minimum you need to do is this:
On my particular system, I am a member of the following groups:
To verify what you have done:
|
|||||
|
|
Choose Select |
|||||||||
|
|
You can also enable root by:
and then insert the password for the root |
|||||
|
|
If you are really want to create superuser (copy of root but with other password and home directory) and not a sudo user, use UID=0 and GID=0 for new user:
|
|||
|
|
|
What I do is adding user to group called wheel, user belonging to that group can execute any administrator command using sudo. You must enable that feature in /etc/sudoers, uncomment line below %wheel ALL=(ALL) ALL |
|||||
|