Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com

This Blog is protected by DMCA.com

huuphan.com. Powered by Blogger.

How to reset root password on centos 7

Many methods to reset root password centos 7. if GRUB 2 bootloader then no longer using in single-user mode as well as emergency mode. To below step by step to reset root password centos 7.

You may reading link below :

Step 1: Start the system, on Grub 2 boot screen, you press the e key as shown below.




Step 2: In linux16 line or linuxefi on UEFI system, add parameters end line as shown below.
rw init=/bin/bash


Using Ctrl+A press or Ctrl+E press to start or end a line.
Disable paramenters the rhgb and quiet in order to enable system message as shown top.
Step 3: you press Ctrl+x to start single user mode
passwd

Step 4: update selinux information
touch /.autorelabel

Step 5: To resume the initialization and finish the system boot.
exec /sbin/init

Video how to reset root password on centos 7
My Channel: youtube
In linux and unix-like operating system, Reset root password centos 7 useful to administrator when you forgotten root password, you can recover very easy.

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com