Hacker News new | ask | show | jobs
by ryanlol 3679 days ago
> I don't know if that's necessary anymore or if they fixed the issue

Definitely worked with just apt-get for me.

>A bigger issue, for me, is it runs as root by default. I was able to create another user and manually switch over using 'su', but it's an annoyance. I haven't figured out how to automatically start a session as a non-root user using zsh.

Huh? It does not run as root by default.

1 comments

> 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?
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).