Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Hello, friends!

This post explains the solution to the issue that I forgot the root password processing
method on SUSE Linux 11. Please read further down to find more details on the
topic.

PROCEDURE

Restart the system. After the grub boot interface appears, add init=/bin/bash to the
boot option of booting Linux and pass the init=/bin/bash parameter to the kernel to
make the OS run bash before running the login program. Command line and change
the root user password.

The specific operations are as follows:

1. Restart the server and enter the grub boot interface. First select 'FailSafe-SUSE
Linux Enterprise Desktop 11', enter 'e', enter the corresponding 'Start Boot' menu
and enter init= at the end of the 'Boot Options' line. /bin/bash parameter, then
press Enter directly.

2. At this point, the system will start according to the corresponding directory and
enter the (none)#: prompt.

(none)#
#mount -o remount, rw / [enter] // The root file system is remounted to read and write.
After the read and write permissions, the password can be changed by the passwd
command.
#cd /usr/bin [enter]
#passwd root //Enter the passwd root command to change the root password,
prompting "Enter the new password for root"
#mount -o remount,ro / [enter] //Set the root file system to its original state.

3. Restart the system (can directly turn off the power). You can use the new
password to enter the SUSE Linux 11 system without destroying any data in the
original system.

This would be the solution to the issue that I forgot the root password processing
method on SUSE Linux 11.

Login to Single user mode in


SUSE Linux (SLES / openSUSE)
by Pradeep Kumar · Updated March 1, 2020
For troubleshooting point of view sometime we have to login in single user
mode in Linux to execute commands like resetting root password in case if
system admin forget the root password and run fsck command if the file
system got corrupted.

In this tutorial we will demonstrate how to login in single user mode in


SUSE Linux ( SLES / openSUSE )

For SLES 11.x / SLES 12.x


Go to the Boot loader Screen, type below command in the boot instruction
option :

init=/bin/bash
Press enter to boot. This will boot the ‘SUSE Linux Enterprise Server 11.x‘ in
the Single user mode. In this mode there is no file system system which is
mounted, so we will use mount command to remount the file system in read
& write mode.
(none):/ # mount -o remount,rw /
(none):/ # mount -o remount,rw /usr ( if the /usr file system is on the
separate partition)
Now try to run commands like resetting the root password.

(none):/ # passwd root


To reboot the machine type “exit” two times.

For openSUSE 13.x / 15.x


Go to Boot loader screen , press e
Go to the Kernel Line and append the command “init=/bin/bash”

Press Ctrl-x or F10 to boot.

Run the mount command to mount the file system in rw mode and then try
to reset root password.

You might also like