No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>


To have a better experience, please upgrade your IE browser.


SIG background server Linux system administrator forgot the password

Publication Date:  2012-11-05 Views:  63 Downloads:  0
Issue Description
In the maintenance process of a site of Tianjin, the customer forgets the root user password of the background sever “SUSE Linux” which is set by himself.
Alarm Information
Handling Process
1, restart system, after appeared the guide interface, at startup Linux options add init=/bin/bash, through transfer “init=/bin/bash” to the kernel to make the OS run bash before running the login procedure, appear the command line.
Specific operations are as follows:
In the grub guide interface, first select "FailSafe," input "e",
Enter the corresponding start boot menu, select the first line "kernel......"
Input "e" and input "init = / bin/bash" parameters at the back of the line.
After finished add, input "b" start
Then the system will according to the corresponding directory start, and into a (none)#: prompt
2, then execute orders mount -n / -o remount,rw, namely re-mount the root file system to read/write. Can through the command “passwd” to modify password after has the read/write privileges.
3, input passwd root command can reset password.
4, after finished the modification, use the command “mount -n / -o remount,ro” recovery the root file system to its original state.
5, restart Linux to make password effective.
Through this can input new root password after log in the system again.
Root Cause