以RedHat Linux为例:
1.确定你的boot loader是由GRUB管理的
2.当GRUB启动时,按'a' to modify the kernel arguments before booting.
3.grub append> ro root=LABEL=/ 1 设置 Run level 1(Single user mode)
4.passwd newpassword
如果GRUB密码也忘记了呢?。。。。。重装系统吧
以RedHat Linux为例:
1.确定你的boot loader是由GRUB管理的
2.当GRUB启动时,按'a' to modify the kernel arguments before booting.
3.grub append> ro root=LABEL=/ 1 设置 Run level 1(Single user mode)
4.passwd newpassword
如果GRUB密码也忘记了呢?。。。。。重装系统吧