cynede / gentoo-wsl

WSL Overlay (Running Gentoo on Windows Kernel)
55 stars 2 forks source link

Fixing login as root #5

Open mvidaldp opened 7 years ago

mvidaldp commented 7 years ago

If you just installed Gentoo on WSL you probably can't login as root by executing 'su' as your password will always fail. An easy trick is to run 'lxrun /setdefaultuser root' on your cmd or powershell before opening your gentoo bash. After, you should delete the user you created on ubuntu on WSL and create it again using your gentoo bash in order to be able to login as the regular user. Then 'su' will run successfully accepting your password.