linux忘记密码使用单用户登录的方法
忘记密码是用于用户登录
比如:1.Grub启动后,出现要启动的操作系统:
Booting CentOS-4 i386(2.6.9-22.EL) in 4 seconds
在倒计时没有结束前,按键“e”
2.屏幕出现CentOS-4(2.6.9-22.EL)
按键“e”
3.屏幕出现以下三行:
root(hd0,0)
kernel /vmlinuz-2.6.9-22.EL ro root=/dev/VolGroup00/LogVo100 rhgb quiet
intrd/initrd-2.6.9-22.EL img
将光标移至第二行kernel /vmlinuz-2.6.9-22.EL ro root=/dev/VolGroup00/LogVo100 rhgb quiet后按键“e”
4.在quiet后加上linux single 两单词
按回车键,返回到3中的屏幕提示
5.按“b”重新启动
转载于:https://blog.51cto.com/4416634/843360