Reset CentOS Root Password using single user mode

Reset CentOS Root Password using single user mode

1. Press any key to enter GRUB menu during start up

2. Press 'a' to modify the kernel arguments


3. Append 'single' at the end of the command, then click "Enter"


4. The system will be booted up and stop at the command prompt, type "passwd" to change a new password.


5. Finally restart the machine, you can login as root using the new password.

留言

此網誌的熱門文章

麥當勞開心樂園餐玩具 The Toys of McDonalds' Happy Meal List

香港行車隧道收費表

用愛氏篩尋找168個3位數質數 Find all 3-digit prime number using Sieve of Eratosthenes