Friday, April 20, 2012

How To Recover Lost Root Passwd on SLES or OpenSuse

It can be done many ways, but the easiest is by accessing single mode.

1. Need to reboot first.

2. Append boot option to single mode

If on other linux distribution, we can access to single mode by appending the kernel and type "single" and change the passwd after that.

But on SLES or OpenSuse, we need to add an parameter to boot option which is :

init=/bin/sh (refer to pic)




and dont forget to press enter.

3. After the single mode is loaded, kindly change passwd by using the "passwd" command

your-hostname:~ # passwd
Changing password for root.
New Password:

Reenter New Password:
Password changed.


4. Reboot and it was done successfully.

No comments:

Post a Comment