📘 Passwd Recovery

📘 Passwd Recovery#

Warning

Unless the system disk has been encrypted, it is easy to change the root password on a Linux device [1].

Force shutdown. In GRUB menu, get in the edit mode by typing ‘e’.

root_passwd_recovery_03

In the edit mode find the kernel boot options on the Linux kernel parameters line.

root_passwd_recovery_04

Edit the Linux Kernel line to launch a shell using the init boot parameter. Also change the disk option to rw.

root_passwd_recovery_05

Check if the disk is writable and change the root password as usual.

root_passwd_recovery_06

Tip

If you forgot to change the disk permissions, remount it with the rw option before attempting to change the password.

mount -o remount,rw /

🤷