I have heard of how to restore the password in single-user mode and CD boot. this method applies to redhatlinux. However, in the suselinux environment, the password is still required to enter the single-user mode, therefore, restoring the root password in the single-user mode does not work. there is no suse system installation disc at hand, you can only think of other methods that have previously heard of using single-user mode and CD boot to recover the password. this method applies to redhat linux. However, in suse linux, the password is still required to enter single-user mode, therefore, it is restored in the single-user mode.
The root password method does not work. there is no suse system installation disc at hand, and you can only find other methods. There will always be a solution. The final solution is as follows:
1. restart the machine. after the grub boot interface appears, add init =/bin/bash to the linux startup options, by passing the init =/bin/bash parameter to the kernel, the OS runs bash before running the login program, and the command line appears.
2. wait for a moment (none) #: command line.
3. enter mount-n/-o remount. rw indicates that the root file system is remounted to read/write. with the read/write permission, you can use the passwd command to change the password.
4. enter the passwd command to reset the password. Enter a password that you remember, but it doesn't matter if you don't remember it. now we know the solution.
5. remember to use mount-n/-o remount after the modification. ro sets the root file system to the original state.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service