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