#linux #redhat #centos #2020
This Video describe how to break / reset root account's password easily in Red hat Linux & Cent OS. please follow below steps.
01. reboot your system.
02. Interrupt the boot presses by pressing "Esc".
03. Select the kernel (Latest shows first) & press '"e" to edit.
04. Scroll down via "Down" key & Find the paragraph begin with "linux16" then Press "End" key to navigate end of the paragraph.
05. Erase all using "Backspace" till "keymap=us"
06. Change permission of "ro" to "rw" ( Read only to Read write").
07. Type "rd.break" then press "Ctrl + X " to start the process.
08. Type "mount -oremount /sysroot" press "Enter".
08. Type "chroot /sysroot" press "Enter".
09. verify the root account active status via typing "chage -l root".
10. Type "passwd" press "Enter" to change the password.
11. Type a password as your wish.
12. Lastly type "touch /.autorelabel" press "Enter".
13. Type "exit" twice or type "reboot"
That's it. Comment below if you have any issues regarding this.