Ubuntu 14.04
Sponsored Link

Add a user
2014/04/18
[1] If you'd like to add new user, Add like follows.
# add a new user "ubuntu"

trusty@dlp:~$
sudo adduser ubuntu

[sudo] password for trusty:
# own password

Adding user `ubuntu' ...
Adding new group `ubuntu' (1001) ...
Adding new user `ubuntu' (1001) with group `ubuntu' ...
Creating home directory `/home/ubuntu' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
# set password for new user

Retype new UNIX password:
# confirm

passwd: password updated successfully
Changing the user information for ubuntu
Enter the new value, or press ENTER for the default
Full Name []:
# if not need, Enter with empty

Room Number []:

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [Y/n]
y

trusty@dlp:~$
[2] If you'd like to give privileges to a new user, Do like follows.
trusty@dlp:~$
sudo
usermod -G sudo ubuntu

trusty@dlp:~$
su - ubuntu

Password:
# try to execute a command which requires privilege

ubuntu@dlp:~$
[sudo] password for ubuntu:    
# password for 'ubuntu'


Broadcast message from trusty@dlp
        (/dev/pts/0) at 19:59 ...

The system is going down for reboot NOW!
Matched Content
 
Tweet