FIX: Ubuntu16.04tls can only log on as guest after the root privilege is elevated

Source: Internet
Author: User

The wheel has been built again ........

Today using W3AF to write to the file, found no write permission, so the internet for help, the results of the pit dad Baidu experience <\b> put together, it let me change the/etc/passwd file username:1000 : 1000 instead of username:0:0. OK, log off the current user, Duang, can only be logged in as guest.

So again the internet for help, all let me restart, the boot always press SHIFT, then choose advanced Options, then choose Recovery Mode, and then into root.

Input:sudo vi/etc/passwd, in the open passwd file to find the previously changed data, the cursor in the data before a character , click on the keyboard of a, enter 100 (itself there is a 0), the other is, change to 1000, back to the last line , enter another line, type:: Wq, on behalf of Save exit.

Sometimes it is really more difficult for me than the ordinary people, because the above these to me no use, because I do not write permission,,,,

What to do? Before executing the above command, enter:mount-o /(note space)

All right, here we go, let's play!!!

FIX: Ubuntu16.04tls can only log on as guest after the root privilege is elevated

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: 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.