Reset root Password Linux

Berikut ini adalah cara mereset root passwd linux

Almalinux 8/9

mount /dev/sda4 /mnt/

mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /dev/shm /mnt/dev/shm
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
chroot /mnt/

passwd


touch /.autorelabel

exit

umount  /mnt/sys
umount /mnt/proc
umount  /mnt/dev/pts
umount  /mnt/dev/shm
umount /mnt/dev

reboot