VMware Linux root忘记密码
vmware 中的 linux root密码重置。
一、进入linux虚拟机开机页面,在这个页面按e,进入编辑页面
二、进入编辑页面,在标红处 UTF-8后面加上 rd.break,按下 ctrl +x,进行下一步
三、在下面页面中输入以下信息:
mount -o rw,remount /sysroot
chroot /sysroot
LANG=en
passwd
– New password: 的时候就输入自己的root 新密码,然后 Retype new password:再确认一次。
touch /.autorelabel
最后touch /.autorelabel 命令是验证,没反应则修改成功。