Recover Centos root Passwod

1. Boot the system and when you see the following message "Press any key to enter the menu", press any key. (You will see the list of available kernel versions.)

2. Press e in order to edit commands before booting.

3. Highlight the list item with vmlinuz in it by using the arrow keys and press e.

4. Now type single or init 1 at the end of the line.

5. Then press enter and b to boot the system with the new argument. (The system will boot into single user mode and you will see bash prompt)

Now it's time to change the password:
6. Type passwd
1.### Shell Commands ###
3.Enter new UNIX password:
4.Retype new UNIX password:
5.passwd: password updated successfully
7. Type reboot to restart the system.
  • recover centos root
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

{cPanel} Viewing cron jobs through SSH

You can use the command crontab -lTo view all od "root" cron jobs.To be more user specific,...

{cPanel + CentOS} How to install cPanel on a CentOS server via ssh?

{cPanel + CentOS} How to install cPanel on a CentOS server via ssh?   Please follow the...

How do I assign additional IP addresses in RedHat/CentOS?

  To assign a new range of addresses to your server you'll need to create a RANGE file. To...

Setup static IP in Debian OS {Debian 6xx}

Basic Setup of a Static  IP for Debian 6xx You'll first need to find out what your...