WSL ubuntu sudo keep env (WSL_DISTRO_NAME)
- 개요 WSL ubuntu에서 WSL_DISTRO_NAME env를 root 계정에서 인식 못할 경우 - 설정 전 $ echo $WSL_DISTRO_NAME Ubuntu-22.04 $ sudo -i $ echo $WSL_DISTRO_NAME - sudoers env 설정 (WSL_DISTRO_NAME) vim /etc/sudoers Defaults env_keep=WSL_DISTRO_NAME - 설정 후 $ echo $WSL_DISTRO_NAME Ubuntu-22.04 $ sudo -i $ echo $WSL_DISTRO_NAME Ubuntu-22.04
2023.01.20