Solution to suse linux root Password loss

Source: Internet
Author: User

I have heard of how to recover the password in single-user mode and CD boot. 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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.