Reset the Root Password in CentOS

If you have forgotten the root password it is possible to set a new one by interrupting the boot process at the GRUB stage and forcing the system into run level 1 (single user mode).

  1. Launch the KVM interface for your server to access it from the console.
  2. Interrupt GRUB by typing a character such as "space" 
  3. Append to the kernel line by typing "a", backspacing through "rhgb quiet" and appending "1" and pressing <enter>. 
  4. This will give you a root shell and not a login prompt. From there you can use the "passwd" command to set a new root password.
  5. Restart the server and allow it to boot normally.
  • 18 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Windows 10 IPMI VPN Setup

Windows 10 has modified default VPN settings, please use the instructions below to setup the VPN...

Installing Debian on Drives Larger Than 2 TB

The following tutorial requires a motherboard that is EFI compatible (most boards since 2012 are...

Enabling root user in Ubuntu

Instructions on how to enable root user in a newly installed Ubuntu server.   The root user in...

Installing Ubuntu Server on Drives Larger Than 2 TB

The following tutorial requires a motherboard that is EFI compatible (most boards since 2012 are...

Browsing the Internet with Windows Server 2008

The default Internet Explorer options are very restrictive and do not allow web browsing or...

Powered by WHMCompleteSolution