I had to use one of my virtual machines that I didn’t use for a while today, and of course I couldn’t remember the password I used for it, so I had to change it.
Here is how to reset a forgotten root password on Novell SUSE
This is a guide for Novell SUSE Linux Enterprise Server 10 SP3.
On the boot menu select the first option “SUSE Linux enterprise server” and press ‘e’ for edit.
On the second menu select the kernel option and press ‘e’ for edit.
init=/bin/bash (leave empty space at the begging), and press ‘Enter’ and then ‘b’ to boot with that option.
The system will boot with the root user logged on, type
passwd to change the password and input your new password, or just press ‘Enter’ for no password (blank password)
Reboot the server and log on with your new password.
4 thoughts on “How to reset lost root password on SUSE Linux Enterprise Server”
My problem is that cannot give any input after boot with init=/bin/bash option in kernel line.
are you running SLES 10, or newer version? SLES 11/12?
SLES 10 Service Pack 2. I can come up to (none):/#, but in this line cannot give any input.
Hello, It is possible that your SLES do not support USB keyboard on single mode or USB packages are not loaded. Try PS2 keyboard. Thanks