๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿง์šด์˜์ฒด์ œ/๋ฆฌ๋ˆ…์Šค

๋ฆฌ๋ˆ…์Šค - WSL 2 Ubuntu ๊ธฐ๋ณธ ๋กœ๊ทธ์ธ ์‚ฌ์šฉ์ž ๋ณ€๊ฒฝ

by Janger 2023. 5. 17.
728x90
๋ฐ˜์‘ํ˜•

 

๋ฐฉ๋ฒ• 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

 

728x90
๋ฐ˜์‘ํ˜•