koto's Site # 😜 Knowing me Search Posts Tags Dates Friends Settings

What if... i lost my linux password

A workthru of linux password recovery

2026-04-04 18:43:00 (UTC) 20 s

Tagged with:

Well, this is geuinaly not so helpful if you also lost your data encryption password.

break in

we gonna use bash as init… by modifing the kernel cmd line.

press ‘e’ key on desired Linux boot entry in grub or systemd-bootd, and overwrite correspond params with these:

rw init=/bin/bash console=ttyS0 earlyprintk=ttyS0

and boot.

and jumped in to a root shell.

break in

and you can run passwd as much as you like it.

# What if... i lost my linux password