重置Debian9的root密码
2020-03-09 本文已影响0人
777930641f9e
1. 修改Grub启动参数
在Grub界面按"e"
查找 linux /boot/vmlinuz-2.6.32……
添加参数 init=/bin/bash
2. 启动
按Ctrl+X
启动
3. 修改root密码
重新以读写模式挂载根目录
mount -no remount,rw /
重置root密码
passwd root
重新以只读模式挂载根目录
mount -no remount,ro /