What to do if the user password on the virtual machine Linux is forgotten?

Source: Internet
Author: User

Once in the experiment, need to enter the Linux platform, on the public computer installed on the virtual machine on the Linux version of the Fedora 8 system, because not my computer in the system when not know the user password, so collated a bit of information, for later forget and to meet the same problem friends to provide a reference, OK, Turn to the chase.


1, open the target machine, in Grub startup, press the E-letter key, you will soon see three options, as follows:



2, continue to press the E-letter key, select Kernel/vmlinuz-2.6.21-1.3194.fc7 ro root=label=/rhgb quiet (of course, different versions of the Linux kernel version number is different, it doesn't matter, look at the back RHGB quiet Can)



3, after the addition of S, and then (enter) enter after press the B-letter key, enter the single-user mode, one will appear the following:



4, using passwd to modify the user's password you want to modify, ok! Finally, reboot a bit.






What to do if the user password on the virtual machine Linux is forgotten?

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.