Reset forgotten root password in debian.

Опубликовано: 19 Ноябрь 2024
на канале: Apt Linux
2,439
21

Reset forgotten root password in debian. 1. From debian grub menu, edit the first option using 'e'. 2 find the line starting with linux /boot/... 3. At the end of this line append init=/bin/bash 4. Then boot in to it using the key Ctrl+X 5. remount the root file system with read and write attribute using mount -o remount,rw / 6. change the root password using the command passwd 7. Reboot the system using reboot -f command.


#debian #root #password