Hacker News new | ask | show | jobs
by lj3 3679 days ago
> Definitely worked with just apt-get for me.

The install worked, but running it was a different story. It would spit out an error after every command. Like I said, this was a while back. It's probably fixed now.

> Huh? It does not run as root by default.

When I run bash.exe, I'm greeted with this prompt

  root@DESKTOP-F7NGQJX:~# pwd
  /root
What do you see?
2 comments

The first version only run as root. From the second release they added user creation when installing.
Actually, the first version never ran as root. It always ran as you, incorrectly reporting the user account.
Great! Maybe I should remove it and re-install and see if I can trigger that.
No need, you can use lxrun /setdefaultuser to change it.

https://msdn.microsoft.com/en-us/commandline/wsl/user_suppor...

In the latest build the installation script asks you to create an Unix user that becomes the default user (with sudo rights).