Debian username and password IP addresses are all forgotten
Source: Internet
Author: User
Solve the problem that all the IP addresses of Debian user names and passwords are forgotten-Debian information of the Linux release-the following is a detailed description. I haven't used this server for a long time. Today, a colleague suddenly asked me to use it and forgot everything. This is a headache. There are a lot of online materials.
The following describes how to use grub in all linux Versions:
1. On the Grub boot loader menu, select the entry you want to enter and type "e" to enter the editing mode.
2. In the second line (similar to kernel/boot/vmlinuz-2.6.15 ro root =/dev/hda2), Type e to enter edit mode;
3. Add "init =/bin/bash" at the end of the sentence and press Enter;
4. Press "B" to start the system.
In this way, we can get a bash shell.
Then change the password:
After entering the shell, the Mount mode of the root partition is read-only by default. We need to change it to writable; otherwise, the root password cannot be changed:
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