📦 归档笔记 — 原创建于 WizNote,仅作归档展示;观点以当年为准,非最新。

WSL (windows subsystem for linux) ubuntu忘记密码找回方法

创建时间2021-02-24最后修改2021-02-25原位置/程序员成长之旅/Windows技巧/字数133
目录:程序员成长之旅/Windows技巧

假设用户 <username> 忘记了密码 :: windows cmd ubuntu config --default-user root :: 设置ubuntu默认用户为root ubuntu :: 进入默认用户为root的系统

x

1 :: windows cmd 2 ubuntu config --default-user root :: 设置ubuntu默认用户为root 3 ubuntu :: 进入默认用户为root的系统 进入系统后 passwd <username> #键入密码 exit

x

1 passwd <username> 2 #键入密码 3 exit 设置成功后 :: windows cmd ubuntu config --default-user root :: 设置ubuntu默认用户为 <username>

x

1 :: windows cmd 2 ubuntu config --default-user root :: 设置ubuntu默认用户为 <username>