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



0
2392

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: https://www.youtube.com/channel/UCoT52Q1CVKNUPmPcer7nCkQ Learn more about subject: http://sabbirprofile.com/ Like us on Facebook: https://www.facebook.com/networkingbit/ Check out our G+ post about this video: https://plus.google.com/u/2/103248424747116367030 Please Like, Subscribe and Share our tutorials :)

Published by: Networking Bit Published at: 6 years ago Category: آموزشی