標籤:password achieve occasion system follow
650) this.width=650;" class="aligncenter size-full wp-image-7111" src="http://www.itzgeek.com/wp-content/uploads/2014/07/CentOS-7.jpg" alt="CentOS 7" width="183" height="128" style="margin:0px auto;padding:0px;border:0px;vertical-align:baseline;height:auto;clear:both;background-position:0px 50%;" />
There may be some occasion you will end up with requirement to reset the root password, the occasion comes when you forget root password; follow this guide to reset the password of root. In CentOS, single user mode will help us to achieve our goal of resetting root password.
Boot your system in single user mode.
chroot your system
reset the root password.
Update SELinux information.
Exit chroot
Reboot your system.
Login with new password.
That’s All.
本文出自 “vincent” 部落格,謝絕轉載!
Reset root password in CentOS 7 / RHEL 7