Reset Forgotten Ubuntu Linux Password on WSL | Debian, Kali, Linux Password Change/Reset on WSL

tanzTalks.tech December 14, 2022
Video Thumbnail

tanzTalks.tech

View Channel

About

No channel description available.

Video Description

How to Install Ubuntu on Windows 11 (WSL) | Windows Subsystem for Linux with GUI Support https://youtu.be/NXJjutYp4x8 Liked my video? 👍Buy me a cup of coffee! 🍵 https://www.youtube.com/channel/UCMz232hZ7fD75uGWhuLNjtA/join Forgot Linux Password on WSL? Here’s How to Reset it Easily WSL (Windows Subsystem for Linux) is a handy tool for people who want to enjoy the power of Linux command line from the comfort of Windows. When you install Linux using WSL on Windows, you are asked to create a username and password. This user is automatically logged on when you start Linux on WSL. Now, the problem is that if you haven’t used it for some time, you may forget the account password of WSL. And this will become a problem if you have to use a command with sudo because here you’ll need to enter the password. Follow Me on Facebook: https://fb.me/tanzTalks.tech Instagram: https://instagram.com/tanzeelosama/ Reset forgotten password for Ubuntu or any other Linux distribution on WSL: 00:38:00 Step 1: Switch to root as default user It will be wise to note down your account’s normal/regular username. The root user in WSL is unlocked and doesn’t have a password set. This means that you can switch to the root user and then use the power of root to reset the password. This is done through Windows Command Prompt and you’ll need to know which command you need to run for your Linux distribution. This information is usually provided in the description of the distribution app in the Windows Store. This is from where you had downloaded your distribution in the first place. From the Windows menu, start the command prompt. In here, use your distribution’s command in this fashion. If you were using the Ubuntu app from Windows store, the command would be: ubuntu config --default-user root To save you the trouble, I am listing some distributions and their respective commands in this table: Distribution App Windows Command Ubuntu ubuntu config –default-user root Ubuntu 20.04 ubuntu2004 config –default-user root Ubuntu 18.04 ubuntu1804 config –default-user root Debian debian config –default-user root Kali Linux kali config –default-user root 00:03:22 Step 2: Reset the password for the account Now, if you start the Linux distribution app, you should be logged in as root. You can reset the password for the normal user account. $passwd username It will ask you to enter a new password. When you type here, nothing will be displayed on the screen. That’s normal. Just type the new password and hit enter. You’ll have to retype the new password to confirm and once again. Congratulations. The password for the user account has been reset. But you are done just yet. The default user is still root. You should change it back to your regular account user, otherwise it will keep on logging in as root user. 00:04:17 Step 3: Set regular user as default again You’ll need the regular account username that you used with the passwd command in the previous step. Start the Windows command prompt once again. Use your distribution’s command in the similar manner you did in the step 1. However, this time, replace root with the regular user. ubuntu config --default-user username If resetting WSL password is this easy, is this not a security risk? Not really. You need to have physical access to the computer along with access to the Windows account. If someone already has this much access, she/he can do a lot more than just changing the Linux password in WSL. More Tutorials on Ubuntu: https://www.youtube.com/playlist?list=PLnisUReSm0-nc0N5IlO0QoJd78oBhlHoX ---------- More Tutorials for VMWare Player: https://www.youtube.com/playlist?list=PLnisUReSm0-ncHac3_ZAsE5g7nWy88Qta Install Microsoft Windows 11 on VMware Player: https://youtu.be/3HBSuoVOpt0 Install macOS 12 Monterey on VMware Player: https://youtu.be/WLMTAqZ_3xU Install macOS 13 Ventura on VMware Player: https://youtu.be/CeSqdrf1WOg ---------- VirtualBox playlist: https://www.youtube.com/playlist?list=PLnisUReSm0-lwVz0CcHg9_NlMY-Vtqd8Y Install Ubuntu 22.04 LTS in Oracle VirtualBox running on Windows 11: https://youtu.be/C5mJ2SwmN0w Install macOS Monterey in Oracle VirtualBox running on Windows 11: https://youtu.be/WGrBHjDFVIw Make Ubuntu Full Screen in Oracle VirtualBox on Windows 11: https://youtu.be/w4E1iqsn_wA Install Oracle Java (JDK) On Ubuntu 22.04 LTS: https://youtu.be/SMfO5oXNp2g ---------- My Gear: MSI GL65 Leopard Gaming Laptop Processor: Intel Core i7-10750H 2.6GHz, 10th Gen (6 Cores) Display: 15.6" FHD (1920*1080), IPS-Level 144Hz Memory: 16GB DDR4 RAM, 2666Mhz Graphics: Nvidia GeForce RTX 2060, 6GB ‎GDDR6 Storage: 256GB NVMe M.2 SSD + 1TB SATA 7200RPM HDD Operating System: Windows 11 Home, 64Bit Web Camera: HD Webcam (720p at 30 fps) Keyboard: Per Key RGB SteelSeries Keypad #Ubuntu #wsl #Windows11 #tanztalkstech #tanzeelosama #tanzTalkstech2 @TanzeelOAnsari @tanzTalks.tech2 @tanzTalkstech

You May Also Like

Secure WSL & Linux Essentials

AI-recommended products based on this video

Loading...
LEGO City Fire Ladder Truck Toddler Toy - Fire Truck Toy with 2 Firefighter Minifigures, Digital Guide for Boys and Girls, Ages 4+ - Learning, Educational Toy for Preschool - 60463

LEGO City Fire Ladder Truck Toddler Toy - Fire Truck Toy with 2 Firefighter Minifigures, Digital Guide for Boys and Girls, Ages 4+ - Learning, Educational Toy for Preschool - 60463

(58)
$19.94
FREE delivery Sat, Jun 14 on your first order
200+ bought in past month
Loading...
The Bible In A Year: A 52-Week Study Through God's Word, Spiral Bound Bible Study Guide Journal Notebook, A Beautiful Year Planner in the Bible for Women (A5)

The Bible In A Year: A 52-Week Study Through God's Word, Spiral Bound Bible Study Guide Journal Notebook, A Beautiful Year Planner in the Bible for Women (A5)

(1)
$23.99
FREE delivery Fri, Oct 10 on your first order
Loading...
Unbreakable: A Woman's Guide to Aging with Power
Best Seller

Unbreakable: A Woman's Guide to Aging with Power

(65)
$31.87
FREE delivery Fri, Sep 26 on your first order
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

(1,977)
$37.99
FREE delivery Sun, Jun 22
Loading...
BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

(180)
$22.99
FREE delivery Sun, Jun 22 on your first order
Loading...
MeLE Quieter DL Mini PC Windows 11 Home, N100 4GB 128GB, 2.5G Dual LAN,IoT Industrial Desktop Computer Support Windows 10 11 Linux Ubuntu Debian 4K Triple Display, Dual HDMI, All-in-One USB-C

MeLE Quieter DL Mini PC Windows 11 Home, N100 4GB 128GB, 2.5G Dual LAN,IoT Industrial Desktop Computer Support Windows 10 11 Linux Ubuntu Debian 4K Triple Display, Dual HDMI, All-in-One USB-C

(170)
$239.99
PrimeFREE delivery Sat, Jun 14
Loading...
BOSGAME Linux Mini PC, Intel 12th N100 16GB DDR4 RAM 512GB SSD Linux Server Computers Preinstalled Ubuntu 22.04,Support 4K Triple Display/USB3.2/WiFi 5/2.5GbE

BOSGAME Linux Mini PC, Intel 12th N100 16GB DDR4 RAM 512GB SSD Linux Server Computers Preinstalled Ubuntu 22.04,Support 4K Triple Display/USB3.2/WiFi 5/2.5GbE

(44)
$219.00
PrimeFREE delivery Mon, Jun 16
Loading...
Lenovo IdeaPad Duet 3i 10.3" Touchscreen Intel Celeron N4020, 2-in-1 Laptop, Windows 11 Home S Mode + Includes 1-Year Microsoft 365 Personal - 82AT00KJCC

Lenovo IdeaPad Duet 3i 10.3" Touchscreen Intel Celeron N4020, 2-in-1 Laptop, Windows 11 Home S Mode + Includes 1-Year Microsoft 365 Personal - 82AT00KJCC

(125)
$255.88
FREE delivery Sun, Jun 22
Loading...
Microsoft Office Home & Student 2019 | One-time purchase, 1 person | PC/Mac Keycard

Microsoft Office Home & Student 2019 | One-time purchase, 1 person | PC/Mac Keycard

(277)
$97.89
FREE delivery Jun 19 - 25
50+ bought in past month
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

(1,977)
$37.99
FREE delivery Sun, Jun 22
Loading...
BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

(180)
$22.99
FREE delivery Sun, Jun 22 on your first order
Loading...
BrosTrend Linux WiFi Adapter for Ubuntu, Mint, Debian, Lubuntu, Xubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, 1200Mbps, 5GHz/2.4GHz, Long Range 2 X 5dBi External Antennas, USB3.0

BrosTrend Linux WiFi Adapter for Ubuntu, Mint, Debian, Lubuntu, Xubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, 1200Mbps, 5GHz/2.4GHz, Long Range 2 X 5dBi External Antennas, USB3.0

(1,644)
$46.99
FREE delivery Sun, Jun 22
Loading...
Electric Potato Peeler Automatic Potato Peeler Machine, Electric Peeler Fruits and Vegetables, Apple Peeling Machine for Kitchen [1 Adapter 2 Extra Blades] with Apple Corer (Black-A)

Electric Potato Peeler Automatic Potato Peeler Machine, Electric Peeler Fruits and Vegetables, Apple Peeling Machine for Kitchen [1 Adapter 2 Extra Blades] with Apple Corer (Black-A)

(0)
$48.99
FREE delivery Aug 13 - 20
Loading...
Karaoke Machine, Portable Bluetooth PA Speaker with 2 Wireless Microphones for Adults & Kids with Lights, Karaoke Microphone with PA System Supports USB/TF/REC/FM/AUX for Home Party(Black)
Best Seller

Karaoke Machine, Portable Bluetooth PA Speaker with 2 Wireless Microphones for Adults & Kids with Lights, Karaoke Microphone with PA System Supports USB/TF/REC/FM/AUX for Home Party(Black)

(1,091)
$129.99
PrimeFREE delivery Sat, Jun 14
500+ bought in past month
Loading...
Monster Mini Karaoke Machine for Kids Adults, Portable Bluetooth Speakers with 2 Wireless Microphones and Lights, Christmas Birthday Gifts Toys for Boys Girls 4, 5, 6, 7, 8, 9, 10, 12+ Toddler

Monster Mini Karaoke Machine for Kids Adults, Portable Bluetooth Speakers with 2 Wireless Microphones and Lights, Christmas Birthday Gifts Toys for Boys Girls 4, 5, 6, 7, 8, 9, 10, 12+ Toddler

(51)
$39.99
FREE delivery Thu, Nov 13
100+ bought in past month
Loading...
Mini Karaoke Machine for Kids Adults, Portable Bluetooth Speaker with 2 Wireless Microphones,Toys Birthday Gifts for Girls Ages 4, 5, 6, 7, 8,9,10,11,12+ Years Old Toddler Teens (Lightpink)
Best Seller

Mini Karaoke Machine for Kids Adults, Portable Bluetooth Speaker with 2 Wireless Microphones,Toys Birthday Gifts for Girls Ages 4, 5, 6, 7, 8,9,10,11,12+ Years Old Toddler Teens (Lightpink)

(5,013)
$37.99
PrimeFREE delivery Sat, Jun 14
700+ bought in past month