Baran Topal

Baran Topal


May 2024
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories


Minimal password recovery in debian

baranbaran

Only 3 steps 🙂

1. You can then use your installation media and boot into recovery mode.
2. Look for mountpoint where for your hard disk e.g. /mnt/sysimages/img1
3. Then run the following command

chroot /mnt/sysimages/img1 passwd root

Where /mnt/sysimages/img1 is the path you identified earlier.
This would prompt you to enter new password.