Linux is an operating system that is recognized for its high level of security and configuration based on the wishes of the user. Which is acquired through the special permissions authorized by the main users. In this article, you will learn how to create and add users on Linux with root permissions, set by default to administrator .
Said permissions are executed through a command system, quite similar to those that are used within other operating systems.
The only difference is that with regard to Linux, the vast majority of the changes that are established within the computer are made through these commands, since it is the only means in which the system executes each of the user’s commands. .
That is why to establish root permissions to other users who use the computer, it requires the writing of said encoding , so that the configuration is applied correctly.
So if you want to learn how to grant these services to other accounts that are used within the Linux PC you use , continue reading this guide.
What should you take into account regarding the root permissions that Linux performs?
It has already been mentioned the fact that once the root aspect is acquired within the operating system, the administrator user will be able to make modifications and obtain full control of the computer’s functions .
Likewise, you will be able to use the execution of the system at your convenience, so that correct compliance with the established configurations can be ensured.
This is a very relevant aspect when considering generating root permissions to another user with whom the PC in question is shared. Well, it implies a fairly significant privacy break .
The possibility of a third party executing a command that totally affects the system, to the point of interfering with some function used in your user account. It is something that must be taken into account.
Therefore, unless the new user is manipulated by yourself, it is highly recommended that you grant this type of permission to other people who use the computer.
Create a new user via Linux
Since Linux is a very dynamic system, there are different codes that can be used within the command window to execute the same function. Although some are shortcuts to other settings.
To create a user to be part of the system manipulation, use the command ” sudo adduser username “, followed by ” sudo / usr / sbin / visudo “.
Similarly, to ensure the privacy of the content of said user, the command ” sudo passwd username ” is used. Which after pressing ” Enter ” will ask you to set the password in question.
Grant root permissions to the new user through the command window
Earlier we mentioned that the Linux command system has different codes that execute a specific task. Some with direct access to different functions.
Allowing another user to work as an administrator also has this feature, so we will show you two methods to achieve it.
The standard command to grant root permissions to someone else. It is added instantly after the user name is set, which is as follows:
“# User privilege specification
root ALL = (ALL: ALL) ALL
username ALL = (ALL: ALL) ALL ”
The quick method to create a new user on linux with root permissions. It will be necessary to ensure that you are using the administrator account. In order to enter the command window and enter the code ” useradd -u 0 -o -g 0 username “.
In the same way as the standard method. Ensuring the privacy of the new account is essential, so it is only necessary to use ” passwd username “.
After setting the password , the new user will automatically appear at Linux startup, and once their account is used, that person will also be able to enjoy the comforts offered by the configurations of this operating system. Adding users in Linux with root permissions has never been so easy. What are you waiting to try?