In Debian Linux, how does one restore a password in single user mode?

Source: Internet
Author: User
In Debian/Linux, what if you forget the password? The simplest method is to enter the single-user mode. The following are the steps to enter the single-user mode: press the "boot" button, and under the system selection menu, move the cursor to Single ...... in this line, press e, edit, and select Kernel ..... in this line, press the e key to enter Debian/Linux. what if you forget the password?

The simplest method to use is to enter the single-user mode. The following are the steps to enter the single-user mode:
Press the "boot" button and move the cursor to Single under the system selection menu ...... in this line, press 'e', edit, and select "Kernel ..... "In this line, press the 'e' key. Then, enter single init =/bin/sh in the console and press enter to enter the single-user mode.

Next, mount the hard disk.
Mount-o remount, rw/

Then you can use the passwd command to change the password.

Finally, shut down and restart, and use your new password to log on.

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.