Ubuntu users must read: How to enable the Root user account?

Ubuntu is a very popular Linux operating system, which has many advantages such as ease of use, stability and security. However, in Ubuntu, the Root user account is disabled by default, which has caused some inconvenience to some users. The root account is the highest authority account in the Linux system . Enabling the root account can make it easier for users to manage and maintain the system. So, how to enable Root account in Ubuntu? This article will give you a detailed introduction.

You might be wondering how to log into Ubuntu as root, or what the default root password is. In Ubuntu  Linux , the root user is disabled by default for security reasons. This tutorial explains how to enable and disable root user in Ubuntu Linux.

sudo permission

Sudo allows an authorized user to run a program as another user (usually root). If you want to grant sudo access to another user, just add that user to the sudo group:

bob@ubuntu-18-04:~$ sudo usermod -aG sudo username

The way to use sudo is to add the command before the command :sudo

bob@ubuntu-18-04:~$ sudo tail -1 /etc/passwd

When using sudo in a session for the first time, the system prompts for the password of the current user, if you want to use

Guess you like

Origin blog.csdn.net/shengyin714959/article/details/130911163