Linux enable root user

original
2013/08/30 13:20
Reading number 1.2K

One distinctive feature of Ubuntu Linux is that you cannot log in to the system as root when you first use it. Why? This starts with the installation of the system. For other Linux systems, the root password is generally set during installation, so that users can log in to the root account or use su[ su - root ]The command is converted to superuser identity.

On the contrary, when Ubuntu is installed by default, no password is set for the root user and no root account is enabled. The question is, what should I do if I want to run commands as root? It doesn't matter. We can use the sudo command to achieve this goal.  

Sudo is a tool commonly used under linux to allow ordinary users to use superuser privileges. This command provides administrators with a fine-grained access control method, through which people can access the system as superusers and other types of users. The advantage of this is that administrators can grant users certain types of superuser privileges without telling them the root password, which is what many system administrators dream of.  

Setting the allocation is simple. Just set a root password for root: $sudo passwd root

After that, you will be prompted to enter the password of the root user, enter the root password consecutively, and then use: $su

You can switch to super administrator user login!  
Expand to read the full text
Loading
Click to lead the topic 📣 Post and join the discussion 🔥
Reward
zero comment
zero Collection
zero fabulous
 Back to top
Top