Ubuntu 14 Password Forget-workaround

Source: Internet
Author: User

Tried all kinds of Linux distribution, six months ago became the deep Linux brain residue, brain remnants so far ...

Deepin is originally based on Ubuntu, so get started without stress, localization and UI are excellent-_-!! Linux Deepin 2014.2 is based on Ubuntu 14.04 TLS development. This version of the system has been changed by GRUB2 Boot, yesterday put the system to play bad, worried dead, today finally fix, ready to write a blog , by the way under the new version of Grub2 How to start with root privileges.

The following demo is similar to the Linux Deepin 2014.2,ubuntu (I guess!). )

1. First turn on select "Advanced Options for * * * *" This line press ENTER, and then select the Last is "(Recovery mode)" This line press "E" to enter the edit page,


2. Modify the RO in the red circle to RW, make the file system readable and writable, then press Ctrl+x or F10 to start.

3. Go to the following menu and select "Drop to root shell prompt" for root shell.


4. Then you can calm the implementation of "passwd + to change the password username", after changing the password "Shutdown-r now" restart Normal startup can.

"Attention" The default root password for Ubuntu is random, with a new root password for each boot. You can change the root password after you enter the command "sudo passwd" in the terminal, and then verify the current user's password. But I personally do not recommend this, you need to switch to the root user can execute the "sudo su" command. If the current user is in the sudo user group, the user created when the system is installed is in sudo by default.

======================================== "Supplement" ===================================

Cheboyou @Feng_Yu remind me that when I write a blog, the machine does not set the root password, you can follow the above steps directly. Now many production servers are directly with the root user, if there is a root password this method will not work, I tried, sure enough, will appear "Give Root password for maintenance" must enter the root password, I use a virtual machine inside a Ubuntu-14.04.1-server re-groped, should follow the following method (Google's approach):

In the above steps to the E key to enter the editing, "Ro recovery nomodeset" should be changed to "RW single Init=/bin/bash", and then press Ctrl+x or F10 to start.

Ubuntu 14 Password Forget-workaround

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.