An alternative solution for forgetting the linux Password

Source: Internet
Author: User
An alternative solution for forgetting the linux Password-general Linux technology-Linux technology and application information. For more information, see the following. If your Linux system does not recognize Linux mount =/dev/xxxx, you can also use the following general methods to solve the problem: at present, all versions of Linux are released with an emergency boot disk, there are usually two disks, one of which is the boot disk and the other is the root disk. The names of these two disks are similar in each version. The first few characters are rescxxxx, the suffix is img or gz.

What I see is rescboot. img and rescroot. img. After finding these two disks, use the portable img file write command rawrite.exe to write the rescboot. img and rescroot. img files to two floppy disks respectively, and then use these two floppy disks to boot Linux.

After booting, run mount/dev/xxxx/mnt under the Super User (xxxx is interpreted as above)

# Cd/mnt
Vi/mnt/etc/passwd

Delete the superuser password. The deletion method is the same as above.

If your system has both passwd and shadow files, you can solve the problem by modifying only one shadow file.
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.