超简单debian root密码恢复

当遇到debian系统root密码丢失,导致无法进入维护模式时,可以通过编辑Grub启动项,临时启动到shell终端,然后修改root密码。具体步骤包括在Grub中编辑启动项,增加`init=/bin/bash`,重启进入shell,使用`mount -o remount,rw /`使根目录变为可写,接着执行`passwd root`设置新密码,最后用`mount -o remount,ro /`恢复根目录为只读并重启系统。" 88421900,8416219,棋牌游戏用户运营策略解析,"['棋牌游戏开发', '游戏运营']
摘要由CSDN通过智能技术生成
An automatic file system check (fsck) of the root filesystem fialed.
A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode.
*The root system is currently mounted in read-only mode.
A maintenance shell will now be started.
After performing system maintenance , press CONTROL-D to terminate,the maintenance shell and restart the system.
Give root password for maintenace
(or type Control-D to continue)

root没有密码怎么办?
受下文启发解决此问题。

debian root密码恢复详细步骤
开机当进入Grub启动项时按下”e”键盘编辑Grub启动项
找到类似于“kernel /vmlinuz-”这一句
并在该句后面加上“init=/bin/bash”
按下“ctrl+x”退出重启,有些是按“b”键盘
重启系统之后默认进入shell终端
修改、根目录为可写
mount -no remount,rw /
修改新的root密码
passwd root
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值