리눅스 - WSL 2 Ubuntu 기본 로그인 사용자 변경
방법 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