Unlike the earlier versions of Rethat variants, version 9 doesn't allow single user mode to change password, as maintanance mode in 9 requires root password.
Single user mode (runlevel 1) can easily be obtained by appending the word 'single' at the end of the line starting with 'linux' by editing the entry in boot menu by pressing 'e' at boot menu.
To reset the root password on the other hand, one requires to follow a specific set of commands,
- At the boot menu, edit rescue mode to append 'rd.break' at the end of the line starting with kernel.
- Boot with the edited line by pressing Ctrl+X or F10.
- At the new prompt starting with switch_root, type the following commands,
mount -o remount, rw /sysroot
chroot /sysroot
touch /.autorelabel
passwd <new root password>
exit
reboot
Comments
Post a Comment