Ubuntu root and ordinary users switch Ubuntu login, the default is normal user rights, then the normal user rights and root permissions how to switch it, the following summary of how they switch between.
Normal user Switching to root user
Login Ubuntu, press the key combination ctrl+alt+t into the terminal interface, the general Terminal interface defaults to the normal user rights mode, how to access from ordinary users root users, there are the following methods:
1, press the SU, and then follow the prompts to enter the corresponding root password, you can log in to root permissions.
2, click on sudo su, and then follow the prompts to enter the corresponding root password, you can log in to the root authority (under this command, generally do not need to enter the corresponding root password).
3, press the SU root, and then follow the prompts to enter the corresponding root password, you can log in to root permissions.
The root user switch to the average user has the following three kinds:
1, want to cut back from the root user user only need to execute the command: SU User (user is your own installation time username),
2, directly enter Exit,
3, Ctrl+d key combination exit
How to set a password for the root user:
just execute the command: sudo passwd root and follow the prompts step-by-step.
Disabling and enabling root login
Execute sudo passwd-l root (only disables root, but the root password is also saved), then performs the SU root discovery Authentication failure (but the sudo su command is still available in root mode).
To start the root login again, execute sudo passwd-u root.