1. Boot the system and select the normal boot menu from the list. Once selected, in the "Boot Options" box type the following.
"init=/bin/bash" if you are using GRUB Boot loader
or
"linux init=/bin/bash" if you are using LILO Boot Loader
This will launch you straight into a Bash shell prompt which comes up even before the Single User mode loads and has the "/" root file system mounted.
2. Do a mount command to check if the root file system "/" is mounted as Read-Write. If root is not mounted as Read-Write, then run the following command:
mount -o remount,rw /
3. Now, simply type the passwd command and enter a new password
4. Reboot the system and log into the box with your new root password.
No comments:
Post a Comment