Linux

How to create and add users in Linux with root permissions

Linux is an operating system known for its high level of security and configuration based on user wishes. What is acquired thanks to the special authorizations authorized by the main users. In this article, you will learn how to create and add users in Linux with root permissions, set by default to administrator .

These permissions are executed through a command system, quite similar to those used in other operating systems.

The only difference is that when it comes to Linux, the vast majority of changes that are made within the computer are done through these commands, as this is the only way the system executes each of the commands in the computer. user.

Therefore, to establish root permissions on other users who use the computer, it is you need to write the encoding , so that the configuration is applied correctly.

So if you want to know how to grant these services to other accounts which are used in the PC Linux you are using , keep reading this guide.

What should you be aware of regarding the root permissions that Linux is running?

It has already been mentioned that once the root aspect is acquired in the operating system, administrator user may make changes and get full control of computer functions .

Likewise, you will be able to use the execution of the system at your convenience, in order to ensure correct compliance with the established configurations.

This is a very relevant aspect when considering generating root permissions for another user with whom the PC in question is shared. Well, that implies a breach of privacy quite important.

The possibility of a third party executing a command that completely affects the system, to the point of interfering with a function used in your user account. This is something to take into account.

Therefore, unless the new user is manipulated by you, it is strongly recommended that you grant these types of permissions 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 in the command window to perform the same function. Although some are shortcuts to other settings.

To create a user who is part of the system manipulation, use the command " sudo adduser username ", followed by " sudo/usr/sbin/visudo ».

Likewise, to ensure the confidentiality of the content of said user, the order " sudo passwd username " is used. Who after pressing " Starter Will ask you to define the password in question.

Grant root permissions to the new user through the command window

We mentioned earlier that the Linux command system has different codes that perform a specific task. Some with direct access to different functions.

Allowing another user to work as an administrator has also this feature, so we will show you two methods to achieve this.

Standard method

The standard command to grant root permissions to someone else. It is added instantly once the username is set, as follows:

"# Specifying user privileges 

root ALL = (ALL: ALL) ALL

username ALL = (ALL: ALL) ALL "

Quick method

The quick way to create a new user in Linux with root permissions. It will be necessary to ensure that you use the administrator account. To enter the command window and enter the code » useradd -u 0 -o -g 0 username «.

In the same way as the standard method is performed. Ensuring the confidentiality of the new account is essential, so it is only necessary to use " password username «.

After having set password , the new user will appear automatically when starting Linux, and once their account is used, this person will also be able to enjoy the comfort offered by the configurations of this operating system. Adding users in Linux with root permissions has never been easier. What are you waiting for to try?

Similar items

Leave your comment

Your email address will not be published. Required fields are marked with *

Button back to top