Add User on Linux

On Linux Operating System, one with root permission is allowed to create General Electric Comprehensive Operating Supervisor (GECOS) user account for normal usage. In this section, it guides you on how to create such user account.

Creating User

Before creating a new user, you should always check for the status of the user.

Create Group

To create group, you simply use adduser command. The idea is:

$ adduser <username>

Here is an example:

$ adduser testo

Once done, you can check the creation status by getting the user again. Keep in mind that since Linux uses GECOS user management system, the creation will ask a number of information (through not necessarily to fill in all).

As a privacy advocate, I suggest you leave them out and use a more modern address book tracking system to query those user information. The maximum information you should fill in is "Full Name" only for identification query usage. The rest can be left out.

For the sake of learning, the following example is shown to fill in all information accordingly back when GECOS was implemented:

root:~$ adduser testo
Adding user `testo' ...
Adding new group `testo' (1001) ...
Adding new user `testo' (1001) with group `testo' ...
Creating home directory `/home/testo' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for testo
Enter the new value, or press ENTER for the default
        Full Name []: Testo
        Room Number []: 0
        Work Phone []: 012-3456789
        Home Phone []: 03-45678912
        Other []: supervisor floor B1
Is the information correct? [Y/n] Y
root:~$ 

That's all for creating user on Linux operating system.