Work/Linux(6.x)_centos

centos root password 복구

Flyyunha 2015. 4. 15. 16:44

rescue mode에서


Starting shell...

bash-4.1# chroot /mnt/sysimage
sh-4.1# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

sh-4.1# exit
exit

bash-4.1# reboot