When the default installation is complete and you do not know the root user's password, how do I apply root permissions?
(1) Sudo command This allows you to enter the current administrator user password to get superuser privileges. However, by default, 5 minutes of root access is disabled.
(2) Sudo-i This method to enter the current administrator user's password can be entered into the root user.
(3) If you want to use root permissions all the time, switch to the root user through Su. Let's first reset the root user's password: sudo passwd root so you can set the root user's password.
After that, you are free to switch to the root user, and Su enters the root user's password.
Of course, if you want to switch back to the normal user from the root user, you can use Su-val (general user name)
And when you cut back to the root user, just type exit and enter exit again to return to the original user
17.linux root user and normal user