drserver:resetrootpasswordviasysresccd
no way to compare when less than two revisions
差别
这里会显示出您选择的修订版和当前版本之间的差别。
— | drserver:resetrootpasswordviasysresccd [2018/09/21 22:56] (当前版本) – 创建 liujia | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 通过 sysresccd LiveCD 重置Linux系统 root 用户密码 ====== | ||
+ | 环境:CentOS 6,SystemRescueCd | ||
+ | |||
+ | 过程: | ||
+ | |||
+ | 1.fdisk -l # 在 sysresccd 里先看磁盘分区情况,如本例,判断原CentOS 6 主要文件在 /dev/sda3 | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 2.mount /dev/sda3 /mnt/custom # 将CentOS 6文件挂载到当前的 /mnt/custom | ||
+ | |||
+ | 3.chroot /mnt/custom # chroot 到 /mnt/custom | ||
+ | |||
+ | 4.passwd # 更换root 用户密码 | ||
+ | |||
+ | 5.exit # 退出chroot | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | 6.重启,正常加载到CentOS 6,测试新密码生效 | ||
+ | |||
+ | 参考:http:// |
drserver/resetrootpasswordviasysresccd.txt · 最后更改: 2018/09/21 22:56 由 liujia