News:

The Latest electronic and computer Tips that work!

Main Menu

Redhat and Centos Reset Admin Password

Started by branx86, February 15, 2016, 02:10:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

branx86

At system startup (boot options) press the letter "e"

* Locate the line that contains the word "Linux"

* Using erase backspaces "rhgb" guidelines and "quiet" and at the end of the line type init=/bin/sh

* Press Ctrl + x to boot the system with the changes applied.

* The system is mounted in read-only mode, run the following statement to allow write about the key file: mount -o remount, rw /

* Use the command "passwd root" and place the key you want

* Relabel the selinux with the following command: touch /.autorelabel

* Reboot your system with the following command: exec /sbin/init

* Enter the team and provide the key to return to the previous procedure