Able to access with root user without sudo. #3030

Open
opened 2026-01-30 23:11:15 +00:00 by claunia · 0 comments
Owner

Originally created by @fthomasella on GitHub (Jul 31, 2019).

Environment

Microsoft Windows [Version 10.0.18362.239]
Windows Terminal (Preview)
Version: 0.2.1831.0

Ubuntu 18.04 LTS
Linux 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce

1- Install "Windows Subsystem for Linux"
2- Install any Linux distro, in this case I use Ubuntu 18.04 LTS
3-Open "Windows Terminal (Preview), with Windows Terminal go to the terminal droplist and choose "Ubuntu-18.04" it will open Ubuntu with root user as default.

The issue occuer because I don't finished the initial setup after install ubuntu (create a user, ,setup user passwd, setup a root password e.g..)

After doing the initial setup the problem as solved and "Windows Terminal (Preview)" open with my user and ask for password when I try to became root.

As sugestion, ask the initial setup in "Windows Terminal (Preview)", the same way you already do in cmd/bash.

Originally created by @fthomasella on GitHub (Jul 31, 2019). # Environment Microsoft Windows [Version 10.0.18362.239] Windows Terminal (Preview) Version: 0.2.1831.0 Ubuntu 18.04 LTS Linux 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux # Steps to reproduce 1- Install "Windows Subsystem for Linux" 2- Install any Linux distro, in this case I use Ubuntu 18.04 LTS 3-Open "Windows Terminal (Preview), with Windows Terminal go to the terminal droplist and choose "Ubuntu-18.04" it will open Ubuntu with root user as default. The issue occuer because I don't finished the initial setup after install ubuntu (create a user, ,setup user passwd, setup a root password e.g..) After doing the initial setup the problem as solved and "Windows Terminal (Preview)" open with my user and ask for password when I try to became root. As sugestion, ask the initial setup in "Windows Terminal (Preview)", the same way you already do in cmd/bash.
claunia added the Issue-QuestionProduct-WSLNeeds-Tag-FixResolution-Answered labels 2026-01-30 23:11:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3030