WSL/Как изменить пользователя по умолчанию: различия между версиями

Материал из DZWIKI
< WSL
Перейти к навигации Перейти к поиску
Нет описания правки
 
Строка 1: Строка 1:
Inside the instance, as root, create/edit /etc/wsl.conf and add these lines:
Inside the instance, as root, create/edit <code>/etc/wsl.conf</code> and add these lines:


  [user]
  [user]
  default=username
  default=username


Then close it, run wsl --terminate <distro name> in PowerShell, and restart it.
Then close it, run <code>wsl --terminate <distro name></code> in PowerShell, and restart it.


== См. также ==
== См. также ==

Текущая версия от 00:57, 12 января 2024

Inside the instance, as root, create/edit /etc/wsl.conf and add these lines:

[user]
default=username

Then close it, run wsl --terminate <distro name> in PowerShell, and restart it.

См. также

Ссылки и источники