In a Linux system, it is not normally used because root has too much authority. Login root is only used in some special cases
Perform administrative tasks, typically using the SU and sudo commands for temporary use of root permissions.
1.su and sudo command comparison:
After entering the SU command under a normal user, you will be prompted to enter the password for the root account, then enter the privileged mode (exactly the same as the root login) and exit with exit:
When using the sudo command, you only need to enter the current user's password to execute commands that require root permission, and you can see that using the sudo command does not require a common user to know
Root password to execute root command
How to configure normal users to have permission to use the sudo command can refer to my article:
Https://www.cnblogs.com/leeyongbard/p/9513960.html
2. As root this has very strong permissions, switch to the normal user is not required to enter the authentication
You can use the SU user name or sudo su user name
sudo of Linux commands