Ubuntu forgot password How to do

Source: Internet
Author: User

Just installed, ubuntu14.04, just think, if forget login password, this can not do, so test under
Boot, just over the BIOS display screen, non-stop click, the keyboard left SHIFT key. (Because the beginning is the use of the way, the result is not the spirit.) So I keep clicking, failed, restart the machine, until using this method, keep clicking, come out successfully)
GRUB2, the picture is out.
Select Second: Ubuntu kylin gnu/linux Advanced Options
After entering another screen, select the second item
Ubuntu Kylin gnu/linux,with linux 3.13.0-24-generic (recover mode)
After entering the screen, select the Eighth option.
Root drop to root shell prompt


Last-action section
chmod 666/dev/null (chmod 666, all users have read and write access,)
Mount-o REMOUNT,RW/(Note:-O, this is the letter, not the 0, is the disk quota mount point for/partition.) RW is a read-write mode. The popular point, probably meaning, is to set the root partition to read-write mode. )
chmod 777/etc/passwd (chmod 777, so the user has read and write execution permissions)
Pwconv (opens the user's shadow password.)
passwd root (note, root is user name)
Next, you enter the same password two times in a row.
The last merit became.

Ubuntu forgot password How to do

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.