Pages

Thursday, March 26, 2015

RHEL v7: How to reset the password

Reboot


-        Start system and at GRUB2 boot menu, press ‘e’ to edit default boot item.
-        Scroll down to locate ‘rhgb quiet’ and replace it with ‘rd.break enforcing=0’
-        Press Ctrl-x to start
-        Remount / File System with read and write option
# mount –o remount,rw /sysroot
-        To access system
# chroot /sysroot
-        Change root’s password
# passwd
-        SELinux relabeling
# touch /.autorelabel
-        Reboot System
# exit, exit (or Ctrl-b, Ctrl-b)

No comments:

Post a Comment