Score:0

WSL ZSH Always Defaulting to Root

tr flag

I've created a new user and set it with export DEFAULT_USER="<username>" in both my .zshrc and .bashrc files. I've run ubuntu2004.exe config --default-user <username> from the terminal. Nevertheless, every time I restart the terminal it runs as the root user. How do I get the terminal to start up using the correct (non-root) user?

Also added to wsl.config

[user]
default=foo
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.