Ubuntu root user switched to normal user

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.