Quantcast
Channel: How to set default user for manually installed WSL distro? - Super User
Browsing latest articles
Browse All 9 View Live
↧

Image may be NSFW.
Clik here to view.

Answer by mxsxs2 for How to set default user for manually installed WSL distro?

None of the answers worked for me on Windows 11 with an imported Ubuntu distribution. This is more than likely because my user is a domain user rather than local.What worked is:Go into regedit and...

View Article


Answer by SoloKyo for How to set default user for manually installed WSL distro?

Verify the uid of the user that you want to set as default in your Linux console by id:username@host:~$ iduid=1000(username) gid=1000(username)...

View Article

Answer by beeThree for How to set default user for manually installed WSL...

If you are using Windows Terminal then you can configure a profile for your distribution.In the Profiles settings for Windows Terminal select your distro's profile, then click the General Tab and under...

View Article

Answer by NotTheDr01ds for How to set default user for manually installed WSL...

As of the time of this writing, there are at least three (let's call it 3.5) different methods of changing/setting the default user in an imported WSL instance. While the two that have already been...

View Article

Answer by Jaime for How to set default user for manually installed WSL distro?

If you are installing some custom distributions in WSL, you will not get a "distroname.exe" command to change the configuration. You may use LxRunOffline to change the default user. This toolset can be...

View Article


Answer by Jooio for How to set default user for manually installed WSL distro?

Normally went to the root user terminal edit the .bashrcvim .bashrcAppend this line to the last of itsu - $name

View Article

Answer by harrymc for How to set default user for manually installed WSL distro?

The normal command syntax is for example:ubuntu config --default-user new_user_nameHowever, this does not work for an imported distro, which is startedby the following command :wsl --distribution...

View Article

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...

View Article


Answer by Shubhankar Sarkar for How to set default user for manually...

Just FYI, if you have installed distrubution other than ubuntu on WSL like OracleLinux, then command is:OracleLinux91.exe config --default-user root

View Article

Browsing latest articles
Browse All 9 View Live