How to reboot CentOS in single user mode to reset root password?

If you have forgotten the root password and you need to reset it on CentOS, one can reset it by following steps:

a) At the splash screen during boot time, press any key which will take you an interactive menu.
b) Then select a Linux version you wish to boot and press “a” to append option to the line. This will bring you to a line with the boot command
c) Next at the end of that line type “single” as an option/parameter and then Press “Enter” to exit and execute the boot.

This will start the OS with single user mode which allow you to reset the root password by typing passwd and you can set new password for “root”.

One comment

  1. this does not work for centos 6.3. Why is everyone posting the same thing? Doesn’t anyone realize that this option no longer works? Have we even tested this?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.