重置linux 系统密码(龙芯平台亦适用)

  1. 在电脑上电后出现grub menu list 时选择要启动的选项
  2. 按 e 进入编辑模式
  3. 找到linux 关键字,在其后添加内核参数 rd.break
  4. 按F10 启动系统进入紧急模式
  5. 执行 mount -o remount,rw /sysroot
  6. 执行 chroot /sysroot
  7. 进入系统后之后执行设置用户密码或添加用户等操作。

参考链接:
https://www.rootusers.com/how-to-reset-root-user-password-in-centos-rhel-7/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章