RHEL 7 / centos 7 root Password Reset.
Step 1:
Break the Consloe while Linux boot. Step 2: Press "e" to edit the kernel. Step 3: append the entry at the end of linux line as below rd.break console=tty1
Step 4:
Press CTRL+X
Step 5:
mount -o remount,rw /sysroot
chroot /sysroot
chroot /sysroot
Step 6: change root password Step 7:
touch ./autorelabel
Step 8:
Type exit and then again exit
Comments
Post a Comment