Reset RooT password Single User Mode on CentOs 7

Here we tend to area unit seeing the way to reset the foundation watchword of a Centos seven server victimisation single-user mode. the strategy is especially applicable for dedicated servers since there area unit choices accessible within the board to reset the password for a VPS victimisation any virtualization platform.

Reset RooT password Single User Mode on CentOs 7

  1. Login to the IPMI and start the Java Console.
  2. Reboot the server and in the grub menu, you need to select the option to edit by pressing 'e'.
  3. There you can see some texts and you can find the following words in the 16th line:
    ro rd.lvm. lv=centos
  4. Please remove 'ro' and add the following instead:
    rw init=/sysroot/bin/sh 
    so it will look like 
    rw init=/sysroot/bin/sh rd.lvm. lv=centos
  5. Then press ctrl+x to start the single user mode.
  6. There you will get a command prompt. Please type the following command there:
    #chroot /sysroot
  7. Then reset the root password using passwd command:
    #passwd root
  8. Update SELinux information by using the following command:
    #touch /.autorelabel
  9. Then exit and reboot the system using the following:
    #exit

    #reboot
  10. Once rebooted, you can log in to the server using the newly set password.

 

  • centos single user mode
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

DDOS and DNS A Records Need Why ?

It is required that all DDOS shared hosting clients use Rivalhost Global Protected Name-servers...

Can you change my PHP version?

All new shared hosting accounts are created on a server which runs php version 5.3.x or higher We...

Do you host adult sites or content?

Yes we have Offshore Server also Offshore/ anonymous location . you can host / or runs any type...

Can I have multiple domains point to the same website?

Yes. These are commonly referred to as "parked domains" and allow you to have multiple domain...

How long does it take for my account to be setup?

Generally, it will not take more than 24 hours for us to setup your account, unless we have...