Reset Ubuntu 16.04 Password (Forgot Password)

Source: Internet
Author: User
Keywords forgot my password ubuntu ubuntu password reset how to reset ubuntu password
1 Introduction
This article mainly explains how to crack the login password on the Ubuntu system. The Ubuntu version used in this article is 18.04, and the GNU GRUB version used is 2.02. After testing, it also works under Ubuntu 16.04. According to the principle, all Ubuntu versions can refer to this article to reset the login password.


Alibaba Cloud Simple Application Server:  Anti COVID-19 SME Enablement Program

$300 coupon package for all new SMEs and a $500 coupon for paying customers.

2. Bring up the grub menu
1. Press the shift key crazily when booting to bring up the boot menu:

3. Choose Ubuntu Advanced Options
Select the second [Ubuntu Advanced Options] and press Enter to enter, the interface is as follows:
img
4. Select the recovery mode of the corresponding kernel
Select the recovery mode corresponding to the highest Linux kernel version, that is, the system and password recovery mode, as shown in the following figure, press e on the keyboard to edit the startup item, do not press the enter key, repeat it again, do not press the enter key:
img
5. Modify grub startup options
Press the down arrow to scroll down, find [recovery nomodeset] on the fifth-to-last line and delete it, then move down one line and add [quiet splash rw init=/bin/bash] at the end of the line (the end of the linux line in the figure below) , Ie locale=en_US quiet splash rw init=/bin/bash), press F10:
img

img

6. Ubuntu reset root or user login password

Press F10 to enter the following interface, at this time there are two options:
– Modify the root account password: enter passwd
– Know the user name: Enter the passwd user name and you will be prompted to enter the new password, and then use the physical button to restart or the management card management function to restart, if it is a virtual machine, just restart the Ubuntu system in the virtual machine software, and then Just log in with the new password.
img

img

As shown in the figure above, the return of password updated successfully means success. If the return value is not password updated successfully, you need to carefully look at the correct steps above.


7. Use the new password to log in to the system

8. Summary
If the virtual machine is installed with Ubuntu for self-learning or self-use, the password can be set simpler, or can be set to automatically log in, and then you do not need to enter the password to log in every time, but you must ensure that the account you log in has administrator privileges. Otherwise, many operations cannot be performed. The method introduced above is only for learning and communication, please do not use it to crack other people's Ubuntu system passwords to cause damage to other people's computers. This operation can only be performed with the local display or server remote management card in conjunction with the computer room manager, and cannot be remotely cracked by other methods.
Related Article

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.