How to switch to root user in ubuntu, use the following command
su root
But for a Linux system that has just been installed, it will prompt that the password is wrong after entering the password, because no password is set for root.
Solution:
enter:
sudo passwd root
Enter a password, and confirm the password.
Re-enter the command: su root, then enter the password, and find that you can switch to root authority.
Switch back to normal user from root:
exit