How to enable root user in Ubuntu Server in an easy way

Do you need to access system folders on Ubuntu Server? The solution is to become a Root user, we show you the easy way to do it. Ubuntu Server is a variant of the Ubuntu open source operating system, primarily meant to be installed on servers.

Currently, the use of this operating system on servers it has become popular, as its environment, although not graphical, is very easy to use even remotely. At the same time it is possible to create and add users in Linux with root permissions.




By not requiring this graphical environment, using command lines, resources can be used to maximize server capacity, achieving better results.

Also, during the installation process, you can establish specific preferences for the type of server to use, making Ubuntu Server an operating system adaptable to the needs of each user.

Security is also an important aspect in this operating system, it allows the creation of encrypted directories to protect important data and information.

Another feature that makes this software a favorite of many is its durability, meaning that it can be online for years without having any significant bugs or errors. In addition, it has a support system for each version and in case of update, the user can choose what to update.

On the other hand, being free software, the costs necessary to obtain a server with an Ubuntu operating system are much lower than others.

What is the root user?

He is a type of user he has administrative access to the system, so it is authorized to make changes in the root. When installing an operating system, in most cases, the first user created will have Root access, while the others will be restricted for security reasons.




However, you can authorize other users using the Users and Groups application and remove the permissions itself.

Root access allows authorized users to make changes which allow for better performance on servers. These types of users may also restrict or allow access to certain data or files stored by other users of the server. For this reason, it is recommended that only experienced users have root access.

Enable root user

How to enable root user in Ubuntu Server in an easy way

One of the simplest ways to activate the root user is to use the sudo command, which corresponds to the Linux utility Super User Do. This utility allows you to perform actions that require security privileges that only some users have, allowing you to have temporarily the accesso root.

By running the sudo command, you can see all the allowed actions, for example, granting permissions to a user or a group of users, among others.

In case you are using a user without root access, you can use the sudo command to perform actions limited to the superutente. For example, typing sudo apt-get install (package name) can install programs.

While the command sudo apt-get uninstall (package name) allows you to uninstall programs, an action that requires security privileges.

If you don't want to type the sudo command every time you want to perform an action, you need to run the sudo command su -. In some cases, you will be prompted to enter yours Password user and then the username will change indicating that you are already a Root user. Now that you have the necessary permissions, you will be able to make any system changes you want, such as installing or uninstalling packages or programs. recover the forgotten user password in Ubuntu from the terminal.




The default time for this is 15 minutes, but this preference can be changed by the admin user.

Since changes to the system affect the operating system and could damage it, it is best to grant root access only to experienced users. In this way is maintained the security and integrity of information stored on the server. But you should still know how to change forgotten root password in Ubuntu Linux


 

Disable root user

How to enable root user in Ubuntu Server in an easy way


Once you've finished making your changes, it's possible disable root access for the user you are using.

One option would be to wait for the time set for the sudo su command to expire. And, in case of completion before this time expires, use the comando sudo passwd –dl root. Once you log back in with your unprivileged user, you will not be able to make any changes to the system.

add a comment of How to enable root user in Ubuntu Server in an easy way
Comment sent successfully! We will review it in the next few hours.