Re:Ask HN: Have any of you switched to Bash on Windows?
by lj3 on Sunday May 29, 2016 @09:00PM
(#11799009)
> 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?
Re:Ask HN: Have any of you switched to Bash on Windows?
by kyriakos on Sunday May 29, 2016 @11:26PM
(#11799397)
The first version only run as root. From the second release they added user creation when installing.
Re:Ask HN: Have any of you switched to Bash on Windows?
by JdeBP on Tuesday May 31, 2016 @09:55AM
(#11806494)
Actually, the first version never ran as root. It always ran as you, incorrectly reporting the user account.
Re:Ask HN: Have any of you switched to Bash on Windows?
by lj3 on Monday May 30, 2016 @12:12AM
(#11799514)
Great! Maybe I should remove it and re-install and see if I can trigger that.
Re:Ask HN: Have any of you switched to Bash on Windows?
by pugwash on Monday May 30, 2016 @07:10PM
(#11803733)
No need, you can use lxrun /setdefaultuser to change it.
https://msdn.microsoft.com/en-us/commandline/wsl/user_suppor...
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.