๋ฐฉ๋ฒ 1. ํ์ค ๋ช ๋ น์ด๋ก ๊ธฐ๋ณธ ๋ก๊ทธ์ธ ์ฌ์ฉ์ ๋ณ๊ฒฝ
ubuntu config --default-user <username>
์ถ์ฒ:
https://askubuntu.com/questions/816732/how-to-change-default-user-in-wsl-ubuntu-bash-on-windows-10
How to change default user in WSL Ubuntu bash on Windows 10
I installed the WSL Bash on Windows 10 and set my user to e.g. 'abc' but now I want to change it to something else. How can I change the user name of the user I'm logged in as? When I open bash it
askubuntu.com
๋ฐฉ๋ฒ 2. /etc/wsl.conf ํ์ผ ์์ ํ์ฌ ๊ธฐ๋ณธ ๋ก๊ทธ์ธ ์ฌ์ฉ์ ๋ณ๊ฒฝ
nano /etc/wsl.conf
[user]
default=username
wsl --terminate <distroname>
์ถ์ฒ:
https://superuser.com/questions/1566022/how-to-set-default-user-for-manually-installed-wsl-distro
How to set default user for manually installed WSL distro?
I have cloned a WSL distro using wsl --export and wsl --import, but now, running wsl newdistro always logs me in as root. I understand that the lxrun command is deprecated and want to avoid it. The...
superuser.com