How to add user in linux

Just go to your terminal and type in “adduser <username>”, and it will prompt out the password input for you to key in.

xyiry@xyiry-laptop:/etc/skel$ sudo adduser xyiry
Password:
Adding user `xyiry’…
Adding new group `xyiry’ (1004).
Adding new user `xyiry’ (1004) with group `xyiry’.
Creating home directory `/home/xyiry’.
Copying files from `/etc/skel’
Enter new UNIX password:
Retype new UNIX password:
No password supplied
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for xyiry
Enter the new value, or press ENTER for the default
Full Name []: Xyiry
Room Number []: 0
Work Phone []: 012-2643164
Home Phone []: 012-2643164
Other []:
Is the information correct? [y/N] y


About this entry