cBrandon Community

General Category => Linux Fixes => Topic started by: branx86 on February 15, 2016, 02:10:34 PM

Title: Redhat and Centos Reset Admin Password
Post by: branx86 on February 15, 2016, 02:10:34 PM
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