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

۱.۸ K


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. touch /.autorelabel 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: Learn more about subject: Like us on Facebook: Check out our G+ post about this video: Please Like, Subscribe and Share our tutorials :)

منتشر شده توسط: Networking Bit
تاریخ انتشار: ۲ سال پیش
دسته بندی: