Possible Duplicate:
How to create a admin user on ubuntu
How can I create a superuser in Ubuntu 11.10? I need to create it using the command line.
Either we could change a normal user to become a superuser, or we could create a superuser right away.
Best Answer
You can create a new user simply using the
adduser(8)
command.To make it a user capable of performing
sudo
, add him to thesudo
group using either of the following commands:This works because the
sudo
group is predefined in/etc/sudoers
. Note though that older versions of Ubuntu will useadmin
as group instead:For any other customization, refer to the Sudoers documentation.