Arch Linux

How to Create a User in Arch Linux

Over the past several years, many software platforms have been developed, and they are being updated constantly. Changes and modifications are being made continuously to deliver exceptional experiences with software usage. Each year, more and more utilities are added to software to enhance and maximize functions and features.

Arch Linux is a simple distribution medium that supplies users with the latest, smartly modified, and most stable software. Generally, the Arch Linux setup process requires a user to get the process done. To successfully get the services provided by Arch Linux, you will need a typical user account. Arch Linux delivers default installation that includes the basic base system. This guide demonstrates how to create a user account in Arch Linux.

Creating A New User without root Privileges

But, in this guide, there will be an exception. The process of creating a user will be executed without any root privilege, as is the unusual condition, in this case. The reason for that is because using a rooted system can prove to be dangerous. It can pose serious problems to your system. We prefer that you carry out this operation without any root privileges enabled. So, this is the main reason for creating a normal user account, first, before performing the steps described in this guide.

How to Create a User in Arch Linux

Now, how do you create a user account in Arch Linux? At this step, we will incorporate the commands of the console to formulate a user in the Arch Linux server. Console commands are basically defect- or error-removing tools. These tools are highly important, as they boost functionality. By using console commands, users are supplied with a wide range of utilities.

You will be able to control all the functions and mechanisms of your system once you are a user. After giving permission for root privileges, enter the following commands:

$ useradd -m -G wheel -s /bin/bash your_username

useradd
 
After entering the above command, a brand new user account will be created accordingly.

Note: Be sure to type this command carefully without any errors or mistakes.

After the user account is formed, you can put in a password for the account you have created. Run the following commands to complete this action.

$ passwd your_username

passwd your username
 
If you have followed these steps correctly, a new user account will be formed.

Moving on to the next step, you will need to log in to the server by incorporating the new user account. In that case, log out of the root using the following command:

$ exit

exit
 
After logging out, using your new user account and the password you just formed, proceed to login.

Add User in sudo Group

Finally, all you have to do is gain the consent of the sudo for the new user account. Without sudo authorization, the entire progress can be at risk of failure.

To obtain sudo approval, type in the following command to add your user account to the group of sudoers:

$ echo “younis1 ALL= (ALL)ALL” >> /etc/subdoers

Add user in Sudo Group
 
Upon accomplishing all the steps provided above, you will be able to set up an authentic and functioning user account in Arch Linux.

Note: The process given above includes several commands to enter. A single mistake will lead to faulty or indefinite results.

Conclusion

You can enjoy a number of benefits by forming a new user account in Arch Linux. One great perk of following this guide is that it includes a useful installation process that is quite minimal. This process promises to render convenience once a new user account is made.

About the author

Younis Said

I am a freelancing software project developer, a software engineering graduate and a content writer. I love working with Linux and open-source software.