峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
Kali Linux reset root password
2022-03-25 |Nonni | TSI

IMG_20200128_175108_1.jpg
系统基于实体机

  1. 启动引导界面按 e 进入编辑模式,有关内核的一栏后面添加:

    init=/bin/bash

  2. 启动系统后执行:

    mount -no remount,rw /

    passwd root

  3. 执行同步和挂载重挂载:

    sync

    mount -no remount ,ro /

  4. reboot

基于Windows 下的 WSL

CMD 下运行:

kali config --default-user root 
bash
passwd root

if reset your default user back to your normal Linux user account:

kali config --default-user ‘username’
respond-post-647

添加新评论

请填写称呼
请填写合法的电子邮箱地址
请填写合法的网站地址
请填写内容