sudo passwd root 输入自己想要的密码后,回车键,然后Retype new password。再次输入刚才的密码,按回车键就可以看到 passwd: all authentication tokens updated successfully.这个提示就是用户密码更新成功。如下图:情况二:如果安装的时候,创建了新的用户。这种情况下,需要使用到如下命令:kali config --default-u...
kali config--default-user root 这个命令是将kali的默认用户设置为root用户。然后在进入操作系统的时候,使用的用户,就是root用户了。如上图。进入root用户后,就可以以root用户身份修改密码了。 请注意,这里的kali是kali操作系统。如果是CentOS系统的话,将kali修改成CentOS...
Please create a default UNIX user account. The username does not need to match your Windows username. Formoreinformation visit: https://aka.ms/wslusersEnter new UNIX username:xurmNew password:Retype new password:passwd: password updated successfully Installation successful!To run a command as admini...
PSC:\Users\NowTime> ubuntu config --default-user root PSC:\Users\NowTime> ubuntu root@WenzhouChan:~# passwdEnter new UNIXpassword:Retype new UNIXpassword:passwd:password updated successfully root@WenzhouChan:~#
Ubuntu 20.04 ubuntu2004 config –default-user root Ubuntu 18.04 ubuntu1804 config –default-user root Debian debian config –default-user root Kali Linux kali config –default-user root 步骤2:重设帐户密码 现在,如果你启动 Linux 发行程序,你应该以 root 身份登录。你可以重新设置普通用户帐户的密码。
5. 设置默认root登录:以管理员打开powshell,输入以下命令, 注意:用户名需要替换掉,版本页需要替换掉,如果wsl的路径不在这里可以去C:\Program Files\WindowsApps\XXX.UbuntuXXX\ubuntu版本.exe C:\Users\用户名\AppData\Local\Microsoft\WindowsApps\ubuntu版本.execonfig--default-userroot ...
在Ubuntu 18.04的WSL中如何设置root为默认账户? WSL中以root账户登录有什么风险? 如何在WSL Ubuntu 18.04中修改默认登录用户? 在cmd中执行如下命令即可: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 ubuntu1804.exe config --default-user root 本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
root@DESKTOP-OTHFAK6:~# passwd lhlEnter new UNIX password: 这里的lhl就是我的账户名称,修改完成之后退出,WSL 恢复WSL的默认账户为普通用户 PS C:\windows\system32> ubuntu1804.exe config --default-user lhl 好了,到目前为止,WSL的普通账户的密码修改完毕。
Set root as default user in Linux app’s configuration 为了减少你的麻烦,我在这个表格中列出了一些发行版和它们各自的命令: 步骤2:重设帐户密码 现在,如果你启动 Linux 发行程序,你应该以root身份登录。你可以重新设置普通用户帐户的密码。 你还记得 WSL 中的用户名吗?(LCTT 译注:请使用你的“用户名”替换...
Please create a default UNIX user account. The username does not need to match your Windows username. For more information visit:https://aka.ms/wslusersEnter new UNIX username: ywh Enter new UNIX password: ywh Retype new UNIX password: ...