-->

Ads 720 x 90

RedHat/CentOS7 root password reseting trick


Dam simple method to reset RedHat ,centOS7 root password

I know their are many methods, but this one worked for me in my CentOS7

www.techglyphs.tk


Append “rd.break” to the kernel command line that starts with linux16 (this will break just before control is handed from the initramfs to the actual system) (sometimes it is needed to delete also everything after “…mapper/rhel-root ro” and append here)

#mount -o remount,rw /sysroot
#chroot /sysroot

#passwd

#touch /.autorelabel
exit” and again “exit” and you are done.

Related Posts

Post a Comment

Subscribe Our Newsletter