Ubuntu16.04 change Normal user rights <1000:1000 to 0:0> only after the guest identity into the system

Source: Internet
Author: User

When a normal user enters the system, sometimes they need to switch the root user, and then change the normal user rights to root user rights. Then, when you are ready to enter the system again, the discovery can only be entered as guest.

So find a variety of ways to change back, the following is the solution I encountered the situation:

1. Restart Ubuntu, press and hold shift to enter the Grup menu, or wait for the Grup menu to appear.

2. Select the Recovery Mode menu and press E to edit.

3, the RO recovery nomodeset to RW single init=/bin/bash, and then F10 into the root one-user mode.

4, vim/etc/passwd into the editor, the user rights from 0:0 to 1000:1000, and finally save the exit (: WQ), restart the computer.

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.