How to reset/break the root password on Redhat enterprise Linux 7/CentOS 7/Linux OS

Published: 01 April 2017
on channel: Networking Bit
2,597
9

This Video will help you to reset/break the root password on Redhat enterprise Linux 7 /CentOS 7 /Linux OS(If you have lost it).Here You will see that how we can recover the lost root password on RHEL 7:
1. Reboot the system .
2. In the grub menu,Edit the grub menu by pressing “e” .
3.Press the arrow keys to get the “linux16” line and press “end” key. This will take you to the end of the line. Here add ” \rd.break console=tty1 ” like below. Press control-x to boot the system.
4.You will get the “switch-root” prompt like below.
5.switch_root:/# mount -o remount,rw /sysroot
6.switch_root:/# chroot /sysroot
7.Set the new root password. (please update the CMDB immediately !)
sh-4.2# passwd root
New password:
Retype new password:
passwd:all authentication tokens updated successfully.
8.sh-4.2# touch /.autorelabel
9.sh-4.2# exit
10.switch_root:/# reboot
11. once the system is rebooted, you will be able to login with new root password which you have set it .

If you found this video valuable, give it a like.
If you know someone who needs to see it, share it.
Leave a comment below with your thoughts.
Add it to a playlist if you want to watch it later.


Feel free to share this video:


For more tutorial Subscribe Our Channel:
   / @nbit  

Learn more about subject:
http://sabbirprofile.com/

Like us on Facebook:
  / networkingbit  

Check out our G+ post about this video:
https://plus.google.com/u/2/103248424...

Please Like, Subscribe and Share our tutorials :)


Watch video How to reset/break the root password on Redhat enterprise Linux 7/CentOS 7/Linux OS online without registration, duration hours minute second in high quality. This video was added by user Networking Bit 01 April 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,597 once and liked it 9 people.