Showing posts with label root. Show all posts
Showing posts with label root. Show all posts
Friday, May 26, 2017
Redhat 7 root password recovery
This is really a note for myself... since it is so terse with no pictures, but may be helpful to someone else.
At the boot menu press "e" to edit the boot option
find the vmlinuz line and after the root= entry find the ro entry and prior to this enter rw init=sysroot/bin/sh
Press Control X and after it boots in single user mode... type
chroot /sysroot
passwd root
passwd
mount -o remount /
touch /.autorelabel
Subscribe to:
Posts (Atom)