What can I do if I forgot my user password on Virtual Machine Linux?

一次在做实验时,需要进linux平台,在公共电脑上装有虚拟机上的Linux版本fedora 8系统,由于不是我的电脑在进入系统时不知道用户密码,所以整理了一下资料,以备以后忘记并给遇到同样问题的朋友提供一个参考,好了,转入正题。

1、打开目标机,在grub启动时,按e字母键,很快会看到三条选项,如下:

2、继续按e字母键,选择kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet(当然不同个版本的linux内核版本号不同,则个没关系,看后面rhgb quiet即可)

3、在其后面加上s,然后(enter)回车后按b字母键,进入单用户模式,一会会出现以下:

4、利用passwd修改自己想修改的用户的密码即可,OK!最后reboot一下即可。

912sy.com download resources are from the network, only for learning and reference use, the copyright belongs to the original author, do not use for commercial purposes, please remove yourself within 24 hours after downloading.
If the content published on this site inadvertently violates your rights and interests, please contact us and the site will be deleted within one business day.If you encounter any problems please contact customer service QQ:2385367137
912sy " What can I do if I forgot my user password on Virtual Machine Linux?