How to switch to the root user identity in Ubuntu? Earlier, the editor shared how to enable the root user in Ubuntu. The following editor will share how Switch to the root user
This note:
This editor's suggestion is only suitable for Ubuntu systems before 10.10, and later 11.04 and 11.10. . . The 14.04 system uses a different default desktop, so this is not applicable. If you want to use it, please install the GNOME desktop
Open the terminal tool as follows, or use the terminal tool shortcut Ctrl+Alt+T Open the terminal
After the terminal tool is opened, as shown in the figure below, our operation will be carried out in this window
Switch root The user's method is to execute the command sudosu. After executing the command above, we will be asked to enter our current password
After entering the password, we will switch to the root user. We can see the current The user is already root
How to exit the root user account? After switching to the root user, we only need to execute the exit command to exit the root user account
The second method of switching to the root user account is to execute the sudo-i command to switch the current user or ordinary user to the root user mode
After executing the command, we are generally required to enter our password. The editor here has just switched to the root user, so the system does not require a password. Generally, the system will not prompt for a password when we switch back and forth as the root user within 10 minutes. We will be asked to enter our password again
上一篇:虚拟机里怎么切换用户
下一篇:虚拟机切换root教程