Quantcast
Channel: Reset the password in Ubuntu / Linux Bash in Windows - Ask Ubuntu
Browsing latest articles
Browse All 8 View Live

Answer by NotTheDr01ds for Reset the password in Ubuntu / Linux Bash in Windows

The other answers here, while mostly valid, are vastly overcomplicated. To change your user password in any WSL distribution, simply:From inside Ubuntu (or another distribution):wsl.exe \~ -u root -d...

View Article



Image may be NSFW.
Clik here to view.

Answer by Jorgeee for Reset the password in Ubuntu / Linux Bash in Windows

I needed to reset my password also in my Windows 10, I has WLS 1 1- Check your linux/ubuntu name, listing the folder: %userprofile%\AppData\Local\Microsoft\WindowsAppsIn my case I found Ubuntu1604.exe,...

View Article

Answer by Nobody for Reset the password in Ubuntu / Linux Bash in Windows

Microsoft has a good help page on this: WSL User documentation.In Windows PowerShell (Super+X, i) you can log in to the Ubuntu root account withwsl --user rootThen change the password as you usually...

View Article

Answer by Janac Meena for Reset the password in Ubuntu / Linux Bash in Windows

For those of you who lost the root password, what worked for me, was updating to Ubuntu 18.04 LTS via the Windows Store. Note, the windows store has two distinct options: UbuntuUbuntu 18.04 LTS (Pick...

View Article

Answer by Richard Szalay for Reset the password in Ubuntu / Linux Bash in...

Edit This no longer works if you have a store-installed distribution of WSL.To add to Tmu's answer, here's a Powershell script (gist) that automates the process (including automatically detecting the...

View Article


Answer by Vladimir Jirasek for Reset the password in Ubuntu / Linux Bash in...

ImportantThis answer is (a) for the older WSL1 only, (b) is outdated as it references paths that are no longer used by WSL1, even, and (c) most importantly, can cause filesystem corruption, per...

View Article

Answer by Tmu for Reset the password in Ubuntu / Linux Bash in Windows

Run bash and make a note of your Linux username (this need not match your Windows username), see How can I find out my user name?Close Bash on Ubuntu if it is running (or the next command will fail).In...

View Article

Reset the password in Ubuntu / Linux Bash in Windows

I have installed Linux Bash on Windows 10 (available from Microsoft), but I've forgotten my password.I've searched for a solution but I only find suggestions that involve doing something before the...

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images