Posted by admin on July 25th, 2008
Don’t have to mention the panic that kicks in when you have forgot or misplaced your root user password. Like most other operating systems, openSUSE helps you to recover or reset the root password from the console.
Please try the following to reset/recover root password. This should work on openSUSE 11.0 & openSUSE 10.x (tested on openSUSE 10.3):
1. Boot the system and select the normal boot menu from the list. Once selected, in the “Boot Options” box type
“init=/bin/bash” if you are using GRUB Boot loader
“linux init=/bin/bash” if you are using LILO Boot Loader
Do a mount command to check if the root file system “/” is mounted as Read-Write. In my system, it indeed mounted as Read-Write.
opensuse11:~ # mount
Else, you may need to remount the “/” file system with read-write as follows:
opensuse11:~ # mount -o remount,rw /
Now, simply type the passwd command and enter a new password:
opensuse11:~ # passwd
Changing password for root
Reenter New Password:
Reboot the system and you are back in business.
opensuse11:~ # reboot
This should help!