WSL/Как изменить пользователя по умолчанию: различия между версиями
< WSL
Перейти к навигации
Перейти к поиску
Dzmuh (обсуждение | вклад) |
Dzmuh (обсуждение | вклад) Нет описания правки Метка: визуальный редактор отключён |
||
| (не показана 1 промежуточная версия этого же участника) | |||
| Строка 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. | ||
== См. также == | == См. также == | ||
* [[ | * [[Как создать пользователя Linux]] | ||
* [[Как создать файл в Linux]] | * [[Как создать файл в Linux]] | ||
Текущая версия от 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.