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.
Before creating a new user, you should always check for the status of the user.
To create group, you simply use adduser command. The idea is:
$ adduser <username>Here is an example:
$ adduser testoOnce 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 testoAdding 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 successfullyChanging the user information for testoEnter 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 B1Is the information correct? [Y/n] Yroot:~$ That's all for creating user on Linux operating system.