How to create and add users in Linux with root permissions

The only difference is that as far as Linux is concerned, the vast majority of changes that take place inside the computer are done via these commands, since it is the only means by which the system executes each of the user's commands.

That is why to establish root permissions to other users using the computer, it is it is necessary to write said coding, 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, keep reading this guide.




What should you consider regarding the root permissions Linux runs?

It has already been mentioned that once the root aspect has been acquired within the operating system, the admin user will be able to make changes and gain full control of computer functions.

How to create and add users in Linux with root permissions

In the same way, you can use the system execution as you wish, in order to guarantee the correct respect of the established configurations.

This is a very relevant aspect when considering the generation of root permissions for another user with whom the PC in question is shared. Well, it implies one privacy violation quite significant.

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 needs to be taken into consideration.

Therefore, unless the new user is manipulated by you, it is highly recommended that you grant this type of permissions to other people using the computer.

Create a new user via Linux

Since Linux is a very dynamic system, there are several codes that can be used within the command window to perform the same function. Although some are links to other settings.




How to create and add users in Linux with root permissions

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

Likewise, to ensure the privacy of the content of said user, the command " sudo passwd username ". Which after pressing "Enter" will ask you to set the password in question.

Grant root permissions to the new user via the command window

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

Allowing another user to work as an administrator also has this feature, so we'll show you two methods to get it.

Standard method

The standard command for granting root permissions to someone else. It is added immediately after setting the username, which is as follows:


“# Specify user privileges 


radice ALL = (ALL: ALL) ALL

username ALL = (ALL: ALL) ALL "

Quick method

The quick way to create a new user on Linux with root permissions. You will need to make sure of use the administrator account. To enter the command window and enter the " useradd -u 0 -o -g 0 username ".

In the same way that the standard method is performed. Ensuring the privacy of the new account is essential, so you only need to use " password username ".


After setting the password, the new user will automatically appear when Linux starts, 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 rooted Linux users has never been easier, what are you waiting for to try?

TagsLinux
add a comment of How to create and add users in Linux with root permissions
Comment sent successfully! We will review it in the next few hours.